Skip to content

Commit 60eba96

Browse files
committed
fix release pipeline
1 parent 8622835 commit 60eba96

File tree

2 files changed

+5
-18
lines changed

2 files changed

+5
-18
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
node-version: 18.x
2424
- uses: pnpm/action-setup@v2
2525
with:
26-
version: 8.0.0
26+
version: 8.x.x
2727
- name: run unit tests
2828
run: |
2929
pnpm install

.github/workflows/release.yml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77

88
env:
99
CI: true
10-
PNPM_CACHE_FOLDER: .pnpm-store
1110

1211
jobs:
1312
release:
@@ -25,12 +24,9 @@ jobs:
2524
with:
2625
node-version: 18.x
2726

28-
- name: install pnpm
29-
run: npm i pnpm@latest -g
30-
- name: Setup npmrc
31-
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
32-
- name: setup pnpm config
33-
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
27+
- uses: pnpm/action-setup@v2
28+
with:
29+
version: 8.x.x
3430
- name: install dependencies
3531
run: pnpm install
3632
- name: create and publish versions
@@ -41,14 +37,5 @@ jobs:
4137
title: 'chore: update versions'
4238
publish: pnpm ci:publish
4339
env:
44-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
45-
46-
- name: Create Release Pull Request or Publish to npm
47-
id: changesets
48-
uses: changesets/action@master
49-
with:
50-
# This expects you to have a script called release which does a build for your packages and calls changeset publish
51-
version: yarn version-packages
52-
publish: yarn release
53-
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5441
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)