Skip to content

Commit

Permalink
Fix release action (#300)
Browse files Browse the repository at this point in the history
* Fix release action

* Update ci action
  • Loading branch information
sz-piotr authored Apr 21, 2024
1 parent c386898 commit 0353b98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# ew tips github actions
# -# uses: mxschmitt/action-tmate@v2
on:
pull_request:
push:
branches:
- master
- main

jobs:
CI:
Expand All @@ -19,7 +17,7 @@ jobs:
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "pnpm"
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
contents: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN2 }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -25,12 +25,8 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
cache: "pnpm"

- run: pnpm install --frozen-lockfile
- run: pnpm build
- run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN2
EOF
- run: pnpm changeset:release

0 comments on commit 0353b98

Please sign in to comment.