From 325a39f1bffcde9713abe3250a4b76eb70a7ab7f Mon Sep 17 00:00:00 2001 From: MARCROCK22 Date: Sat, 14 Jun 2025 19:42:42 -0400 Subject: [PATCH] ci: add npm token verification step in dev workflow --- .github/workflows/dev.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 130b679..e76cfde 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -12,8 +12,10 @@ jobs: permissions: id-token: write if: github.repository == 'tiramisulabs/seyfert' + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} steps: - - name: check out code + - name: Check out code uses: actions/checkout@v4 - name: Install Node @@ -29,12 +31,13 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile + - name: Verify npm token + run: npm whoami + - name: Publish dev tag id: publish run: | new_version=$(npm version prerelease --preid dev-${{github.run_id}} --no-git-tag-version) echo "New version: $new_version" npm config set //registry.npmjs.org/:_authToken ${NODE_AUTH_TOKEN} - npm publish --provenance --tag=dev - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + npm publish --provenance --tag=dev \ No newline at end of file