diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 11108ce4..2a46660f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -30,16 +30,16 @@ jobs: run: | npm pkg set version=$GITHUB_TAG # Setup .npmrc file to publish to npm - # - uses: actions/setup-node@v3 - # with: - # node-version: '20.x' - # registry-url: 'https://registry.npmjs.org' - # - run: npm ci - # - run: npm run test - # - run: npm run build - # - run: npm publish --access public - # env: - # NODE_AUTH_TOKEN: ${{ secrets.NPM_CI_TOKEN }} + - uses: actions/setup-node@v3 + with: + node-version: '20.x' + registry-url: 'https://registry.npmjs.org' + - run: npm ci + - run: npm run test + - run: npm run build + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_CI_TOKEN }} - name: update package version run: | npm i --package-lock-only