Skip to content

Commit

Permalink
fix release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxinghu committed May 29, 2023
1 parent 8622835 commit 60eba96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
node-version: 18.x
- uses: pnpm/action-setup@v2
with:
version: 8.0.0
version: 8.x.x
- name: run unit tests
run: |
pnpm install
Expand Down
21 changes: 4 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:

env:
CI: true
PNPM_CACHE_FOLDER: .pnpm-store

jobs:
release:
Expand All @@ -25,12 +24,9 @@ jobs:
with:
node-version: 18.x

- name: install pnpm
run: npm i pnpm@latest -g
- name: Setup npmrc
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
- name: setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- uses: pnpm/action-setup@v2
with:
version: 8.x.x
- name: install dependencies
run: pnpm install
- name: create and publish versions
Expand All @@ -41,14 +37,5 @@ jobs:
title: 'chore: update versions'
publish: pnpm ci:publish
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@master
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
version: yarn version-packages
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 60eba96

Please sign in to comment.