mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 12:36:08 +00:00
ci: add npm token verification step in dev workflow
This commit is contained in:
parent
e810b6eb52
commit
325a39f1bf
9
.github/workflows/dev.yml
vendored
9
.github/workflows/dev.yml
vendored
@ -12,8 +12,10 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
if: github.repository == 'tiramisulabs/seyfert'
|
if: github.repository == 'tiramisulabs/seyfert'
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
- name: check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Node
|
- name: Install Node
|
||||||
@ -29,6 +31,9 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
|
- name: Verify npm token
|
||||||
|
run: npm whoami
|
||||||
|
|
||||||
- name: Publish dev tag
|
- name: Publish dev tag
|
||||||
id: publish
|
id: publish
|
||||||
run: |
|
run: |
|
||||||
@ -36,5 +41,3 @@ jobs:
|
|||||||
echo "New version: $new_version"
|
echo "New version: $new_version"
|
||||||
npm config set //registry.npmjs.org/:_authToken ${NODE_AUTH_TOKEN}
|
npm config set //registry.npmjs.org/:_authToken ${NODE_AUTH_TOKEN}
|
||||||
npm publish --provenance --tag=dev
|
npm publish --provenance --tag=dev
|
||||||
env:
|
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user