diff --git a/.github/workflows/package-checks.yaml b/.github/workflows/package-checks.yaml index 93636c4..89cba6e 100644 --- a/.github/workflows/package-checks.yaml +++ b/.github/workflows/package-checks.yaml @@ -27,15 +27,28 @@ jobs: - name: Test run: npm test + release: + needs: build + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Use Node.js + uses: actions/setup-node@v2 + with: + node-version: 20 + registry-url: "https://registry.npmjs.org" + + - name: Install dependencies + run: npm install + - name: Build run: npm run build - - name: Clear npm cache - run: | - npm config set '//npm.pkg.github.com/:_authToken' "${{ secrets.NPM_TOKEN }}" - npm config set '//npm.pkg.github.com/:username' 'check-dc-dev' - - name: Publish - run: npm publish --access public + run: | + npm publish --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}