diff --git a/.github/workflow/npm-publish.yml b/.github/workflow/npm-publish.yml index ea572bb3..8aae03e5 100644 --- a/.github/workflow/npm-publish.yml +++ b/.github/workflow/npm-publish.yml @@ -11,24 +11,24 @@ jobs: # Run on latest version of ubuntu runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v2 - # install Node.js - - name: Use Node.js 12 - uses: actions/setup-node@v1 - with: - node-version: 12 - # Specifies the registry, this field is required! - registry-url: https://registry.npmjs.org/ - - run: npm install -g yarn - # clean install of your projects' deps. We use "npm ci" to avoid package lock changes - - run: yarn install - # build the project - - run: yarn run build - # run tests just in case - - run: yarn run test - # publish to NPM -> there is one caveat, continue reading for the fix - - run: npm publish - env: - # Use a token to publish to NPM. See below for how to set it up - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Checkout repository + uses: actions/checkout@v2 + # install Node.js + - name: Use Node.js 12 + uses: actions/setup-node@v1 + with: + node-version: 12 + # Specifies the registry, this field is required! + registry-url: https://registry.npmjs.org/ + - run: npm install -g yarn + # clean install of your projects' deps. We use "npm ci" to avoid package lock changes + - run: yarn install + # build the project + - run: yarn run build + # run tests just in case + - run: yarn run test + # publish to NPM -> there is one caveat, continue reading for the fix + - run: npm publish + env: + # Use a token to publish to NPM. See below for how to set it up + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}