Skip to content

Commit

Permalink
[FSSDK-9494] Correction to release workflow (#216)
Browse files Browse the repository at this point in the history
* Correction to release workflow

based on npm/cli#6184

* Fix for EOL character

* Add gitattributes file for eol=lf

* Add extra line at EOF

---------

Co-authored-by: Mike Chu <mike.chu@optimizely.com>
  • Loading branch information
mikechu-optimizely and Mike Chu committed Sep 25, 2023
1 parent 2ac5cc2 commit e79175d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
3 changes: 3 additions & 0 deletions .github/workflows/react_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: yarn install
- name: Run npm publish command
env:
NODE_AUTH_TOKEN: ${{ secrets.PUBLISH_REACT_SDK_TO_NPM }}
NPM_TOKEN: ${{ secrets.PUBLISH_REACT_SDK_TO_NPM }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm publish

0 comments on commit e79175d

Please sign in to comment.