diff --git a/.github/workflows/main_workflow.yml b/.github/workflows/main_workflow.yml index d0aa811..999ed14 100644 --- a/.github/workflows/main_workflow.yml +++ b/.github/workflows/main_workflow.yml @@ -1,11 +1,9 @@ name: Main workflow on: push -permissions: - id-token: write # Required for OIDC - contents: write env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} jobs: build: runs-on: ubuntu-latest @@ -18,7 +16,7 @@ jobs: cache: 'npm' registry-url: 'https://registry.npmjs.org' - name: Install deps - run: npm ci + run: npm i - name: Test run: npm run test - name: Build @@ -27,7 +25,9 @@ jobs: if: ${{github.ref == 'refs/heads/main'}} run: npx semantic-release env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Coveralls if: ${{github.ref == 'refs/heads/main'}} uses: coverallsapp/github-action@master