Skip to content

Commit

Permalink
fix CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelmansuy committed Jul 1, 2024
1 parent 2cb37fa commit 9e9f656
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ jobs:
build_test_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Build
Expand All @@ -25,8 +26,6 @@ jobs:
run: node scripts/check_version.js
- name: Publish to npm
if: steps.check_version.outputs.is_release == 'true'
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
npm publish
run: npm publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 9e9f656

Please sign in to comment.