Skip to content

Commit c8c09e2

Browse files
committed
fix: release script
1 parent 0fe1041 commit c8c09e2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Checkout
1919
uses: actions/checkout@v4.1.6
2020
with:
21-
ref: main
21+
ref: ${{ github.ref }}
2222

2323
- name: Install pnpm
2424
uses: pnpm/action-setup@v4.0.0
@@ -32,16 +32,16 @@ jobs:
3232

3333
- name: Install deps
3434
run: pnpm install --ignore-scripts --frozen-lockfile
35-
35+
3636
- name: Update npm
3737
# npm version npm 11.5.1 or later needed for Trusted Publishing
3838
run: npm install -g npm@latest
3939

4040
- name: Verify package version and get npm tag
4141
id: get_npm_tag
4242
run: |
43-
TAG=$(pnpm run ci-verify-publish ${{ github.ref_name }} | tail -n 1)
44-
echo "npm_tag=$TAG" >> $GITHUB_OUTPUT
43+
TAG=$(pnpm run ci-verify-publish ${{ github.ref_name }} | tail -n 1)
44+
echo "npm_tag=$TAG" >> $GITHUB_OUTPUT
4545
4646
- name: Publish
4747
run: |

0 commit comments

Comments
 (0)