Skip to content

Commit 0353b98

Browse files
authored
Fix release action (#300)
* Fix release action * Update ci action
1 parent c386898 commit 0353b98

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
# ew tips github actions
2-
# -# uses: mxschmitt/action-tmate@v2
31
on:
42
pull_request:
53
push:
64
branches:
7-
- master
5+
- main
86

97
jobs:
108
CI:
@@ -19,7 +17,7 @@ jobs:
1917
- uses: pnpm/action-setup@v2
2018
with:
2119
version: 8
22-
- uses: actions/setup-node@v2
20+
- uses: actions/setup-node@v3
2321
with:
2422
node-version: ${{ matrix.node }}
2523
cache: "pnpm"

.github/workflows/release.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
contents: write
1515
env:
1616
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17-
NPM_TOKEN: ${{ secrets.NPM_TOKEN2 }}
17+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1818
steps:
1919
- uses: actions/checkout@v3
2020
with:
@@ -25,12 +25,8 @@ jobs:
2525
- uses: actions/setup-node@v3
2626
with:
2727
node-version: "18.x"
28+
registry-url: "https://registry.npmjs.org"
2829
cache: "pnpm"
2930

3031
- run: pnpm install --frozen-lockfile
31-
- run: pnpm build
32-
- run: |
33-
cat << EOF > "$HOME/.npmrc"
34-
//registry.npmjs.org/:_authToken=$NPM_TOKEN2
35-
EOF
3632
- run: pnpm changeset:release

0 commit comments

Comments
 (0)