📦 deps(thirdparty): update snapshots
This commit is contained in:
@@ -32,7 +32,7 @@ jobs:
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
|
||||
with:
|
||||
node-version: "20"
|
||||
node-version: "22.23.1"
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
|
||||
- name: Verify release identity
|
||||
@@ -77,6 +77,14 @@ jobs:
|
||||
run: npm pack --dry-run --json
|
||||
|
||||
- name: Publish
|
||||
run: npm publish
|
||||
shell: bash
|
||||
run: |
|
||||
version="$(node -p "require('./package.json').version")"
|
||||
node -e "const v=process.argv[1]; const semver=/^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$/; if (!semver.test(v)) process.exit(1)" "$version"
|
||||
if [[ "$version" == *-* ]]; then
|
||||
npm publish --tag next
|
||||
else
|
||||
npm publish --tag latest
|
||||
fi
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user