Skip to content

Commit

Permalink
⚙️ Update workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
pheralb committed Oct 18, 2023
1 parent c4d3009 commit 6379c39
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,38 +17,38 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup Node.js 18.x
uses: actions/setup-node@v3
- name: Setup pnpm 8
uses: pnpm/action-setup@v2
with:
node-version: 18.x
version: 8

- name: Install dependencies
run: npm install
run: pnpm install

- name: Run typecheck
run: npm run typecheck
run: pnpm run typecheck

release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Node.js 16.x
uses: actions/setup-node@v2
- name: Setup pnpm 8
uses: pnpm/action-setup@v2
with:
node-version: 16.x
node-version: 8

- name: Install Dependencies
run: npm install
run: pnpm install

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

0 comments on commit 6379c39

Please sign in to comment.