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
11
.github/workflows/dev.yml
vendored
11
.github/workflows/dev.yml
vendored
@ -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
|
Loading…
x
Reference in New Issue
Block a user