diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index bcd1944..f1a16af 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -7,6 +7,11 @@ on: jobs: build: + env: + CI: true + GH_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -15,8 +20,7 @@ jobs: cache: 'npm' node-version: 23 - name: Install dependencies - env: - CI: true + run: npm install - name: Test run: npm test @@ -24,10 +28,6 @@ jobs: run: npm run build - name: Publish if: success() - env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: npx semantic-release - name: Build if: success()