Skip to content

Commit

Permalink
hopefully fix ci releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Rogin Farrer committed Apr 7, 2023
1 parent a46a49e commit 6322ce4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,28 @@ jobs:
env:
CI: true
steps:
- uses: pnpm/[email protected]
with:
version: 7.30.3

- name: Checkout Repo
uses: actions/checkout@main
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- uses: pnpm/action-setup@v2

- name: Setup Node.js
uses: actions/setup-node@main
with:
node-version-file: '.nvmrc'
node-version: '.nvmrc'
cache: 'pnpm'

- name: Install Dependencies
- name: Install dependencies
run: pnpm i

- name: Create release PR or publish to npm
uses: changesets/action@v1
uses: changesets/action@c2918239208f2162b9d27a87f491375c51592434
with:
version: pnpm ci:version
publish: pnpm ci:publish
version: pnpm run version
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"lint": "turbo lint",
"format": "prettier --write **/*.{js,ts,tsx,yml,md,md,json}",
"example": "pnpm --filter example run start",
"ci:version": "changeset version && pnpm install --lockfile-only",
"ci:release": "pnpm build && changeset publish"
"version": "changeset version && pnpm install --lockfile-only",
"release": "pnpm build && changeset publish"
},
"dependencies": {
"@changesets/cli": "^2.25.2",
Expand All @@ -29,5 +29,6 @@
"alias": {
"process": "process/browser.js",
"buffer": "buffer"
}
},
"packageManager": "[email protected]"
}

0 comments on commit 6322ce4

Please sign in to comment.