From 9e9f656a76b0a57d26d0a3925040e2340f6d36aa Mon Sep 17 00:00:00 2001 From: Raphael MANSUY Date: Mon, 1 Jul 2024 16:43:18 +0800 Subject: [PATCH] fix CI/CD --- .github/workflows/ci_cd.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index bd9776c..dbe70fb 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -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 @@ -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 }} \ No newline at end of file + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file