Skip to content

Commit bf87bd0

Browse files
[FSSDK-9494] More changes to the publish workflow... (#217)
* More changes to the publish workflow... https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages#publishing-packages-to-the-npm-registry * Downgrade to node v18 * Add always-auth & yarn npm publish * Corrected to use double-quotations
1 parent e79175d commit bf87bd0

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/react_release.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,20 @@ on:
66

77
jobs:
88
publish:
9-
name: Publish to npm
9+
name: Publish to NPM
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout branch
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414
- name: Set up Node
1515
uses: actions/setup-node@v3
1616
with:
1717
node-version: 18
18-
registry-url: "https://registry.npmjs.org"
18+
registry-url: "https://registry.npmjs.org/"
19+
always-auth: "true"
1920
- name: Install dependencies
2021
run: yarn install
21-
- name: Run npm publish command
22+
- name: Test, build, then publish
2223
env:
2324
NODE_AUTH_TOKEN: ${{ secrets.PUBLISH_REACT_SDK_TO_NPM }}
24-
NPM_TOKEN: ${{ secrets.PUBLISH_REACT_SDK_TO_NPM }}
25-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
run: npm publish
25+
run: yarn npm publish

0 commit comments

Comments
 (0)