diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 31a5dd7..76a786b 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -9,9 +9,11 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - # Setup .npmrc file to publish to npm - - uses: actions/setup-node@v3 + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 with: node-version: '16.x' registry-url: 'https://registry.npmjs.org' @@ -21,8 +23,7 @@ jobs: npm ci npm publish --access public env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN } + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Release Package - uses: ncipollo/release-action@v1.12.0 - + uses: ncipollo/release-action@v1.12.0 \ No newline at end of file