Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ityuany committed Sep 24, 2024
1 parent dd49441 commit ca9f660
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down Expand Up @@ -401,18 +401,18 @@ jobs:
- name: Publish
run: |
npm config set provenance true
TAG=${{github.ref_name}}
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
if echo "$TAG" | grep -q "^v[0-9]\+\.[0-9]\+\.[0-9]\+$"; then
if echo "$GITHUB_REF_NAME" | grep -q "^v[0-9]\+\.[0-9]\+\.[0-9]\+$"; then
npm publish --access public
elif echo "$TAG" | grep -q "^v[0-9]\+\.[0-9]\+\.[0-9]\+"; then
elif echo "$GITHUB_REF_NAME" | grep -q "^v[0-9]\+\.[0-9]\+\.[0-9]\+"; then
npm publish --tag next --access public
else
echo "Not a release, skipping publish"
fi
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_REF_NAME: ${{ github.ref_name }}


update-release:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shined/source-code-diagnosis",
"version": "0.0.32",
"version": "0.0.33",
"main": "index.js",
"types": "index.d.ts",
"napi": {
Expand Down Expand Up @@ -54,7 +54,7 @@
"build:js": "napi build --cargo-cwd crates/binding --platform --js index.js --dts index.d.ts",
"build": "napi build --cargo-cwd crates/binding --platform --release",
"build:debug": "napi build --cargo-cwd crates/binding --platform",
"prepublishOnly": "napi prepublish -t npm",
"prepublishOnly": "napi prepublish -t npm --gh-release-id $GITHUB_REF_NAME",
"test:ava": "ava",
"test": "vitest run",
"universal": "napi universal",
Expand Down

0 comments on commit ca9f660

Please sign in to comment.