Skip to content

Commit 85b36fd

Browse files
authored
Bump version cli (#58)
* chore: bump version to 1.1.0 in package.json * chore: update publish step name and remove NODE_AUTH_TOKEN environment variable * Update publish-cli.yml
1 parent 4fd55f1 commit 85b36fd

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

.github/workflows/publish-cli.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ on:
55
branches:
66
- main
77
paths:
8-
- 'packages/cli/**'
9-
- '.github/workflows/publish-cli.yml'
8+
- "packages/cli/**"
9+
- ".github/workflows/publish-cli.yml"
1010
workflow_dispatch:
1111

1212
jobs:
@@ -15,16 +15,16 @@ jobs:
1515
permissions:
1616
contents: read
1717
id-token: write
18-
18+
1919
steps:
2020
- name: Checkout repository
2121
uses: actions/checkout@v4
2222

2323
- name: Setup Node.js
2424
uses: actions/setup-node@v4
2525
with:
26-
node-version: '20'
27-
registry-url: 'https://registry.npmjs.org'
26+
node-version: "20"
27+
registry-url: "https://registry.npmjs.org"
2828

2929
- name: Setup Bun
3030
uses: oven-sh/setup-bun@v2
@@ -46,10 +46,10 @@ jobs:
4646
PACKAGE_NAME=$(node -p "require('./package.json').name")
4747
LOCAL_VERSION=$(node -p "require('./package.json').version")
4848
NPM_VERSION=$(npm view $PACKAGE_NAME version 2>/dev/null || echo "0.0.0")
49-
49+
5050
echo "local_version=$LOCAL_VERSION" >> $GITHUB_OUTPUT
5151
echo "npm_version=$NPM_VERSION" >> $GITHUB_OUTPUT
52-
52+
5353
if [ "$LOCAL_VERSION" != "$NPM_VERSION" ]; then
5454
echo "should_publish=true" >> $GITHUB_OUTPUT
5555
echo "📦 Version changed: $NPM_VERSION → $LOCAL_VERSION"
@@ -58,12 +58,10 @@ jobs:
5858
echo "⏭️ Version unchanged ($LOCAL_VERSION), skipping publish"
5959
fi
6060
61-
- name: Publish to npm
61+
- name: Publish to npm (Trusted Publishing)
6262
if: steps.version-check.outputs.should_publish == 'true'
6363
working-directory: packages/cli
6464
run: npm publish --access public --provenance
65-
env:
66-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6765

6866
- name: Summary
6967
run: |

0 commit comments

Comments
 (0)