diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 67e3f6a..1dff611 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,15 +7,20 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - # Setup .npmrc file to publish to npm - - uses: actions/setup-node@v2 + - name: Checkout + uses: actions/checkout@v2 + - name: Setup .npmrc file to publish to npm + uses: actions/setup-node@v2 with: always-auth: true node-version: '12.x' registry-url: https://registry.npmjs.org - - run: npm build - - run: npx semantic-release@17 + - name: Install deps + run: npm ci + - name: Build... + run: npm build + - name: Release + run: npx semantic-release@17 env: GH_TOKEN: ${{ secrets.GH_TOKEN }} NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}