@@ -21,6 +21,10 @@ jobs:
|
||||
node-version: 24
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
|
||||
# Stage-only tokens require `npm stage publish` (npm >= 11.15.0).
|
||||
- name: Update npm
|
||||
run: npm install -g npm@^11.15.0
|
||||
|
||||
- name: Install dependencies
|
||||
run: bun install --frozen-lockfile
|
||||
|
||||
@@ -30,10 +34,13 @@ jobs:
|
||||
TAG_NAME="${GITHUB_REF_NAME:-${GITHUB_REF#refs/tags/}}"
|
||||
test "$PACKAGE_VERSION" = "$TAG_NAME"
|
||||
|
||||
- name: Test
|
||||
run: bun test
|
||||
|
||||
- name: Build
|
||||
run: bun run build
|
||||
|
||||
- name: Publish
|
||||
run: npm publish --access public
|
||||
- name: Stage publish
|
||||
run: npm stage publish --access public
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user