Skip to content

Commit

Permalink
Have the release-automation workflows use the same setup as CI
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Sep 11, 2024
1 parent ae5b971 commit bc9090a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/plan-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,10 @@ jobs:
with:
fetch-depth: 0
ref: 'main'
- uses: actions/setup-node@v4
- uses: wyvox/action-setup-pnpm@v3
with:
node-version: 18
- uses: pnpm/action-setup@v4
with:
version: 8.5
- run: pnpm install --frozen-lockfile
node-version: 20.1.0

- name: "Generate Explanation and Prep Changelogs"
id: explanation
run: |
Expand Down
18 changes: 11 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,19 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4

- name: 'Setup local TurboRepo server'
uses: felixmosh/turborepo-gh-artifacts@v2
with:
node-version: 18
# This creates an .npmrc that reads the NODE_AUTH_TOKEN environment variable
registry-url: 'https://registry.npmjs.org'
- uses: pnpm/action-setup@v4
repo-token: ${{ secrets.GITHUB_TOKEN }}

- uses: wyvox/action-setup-pnpm@v3
with:
version: 8.5.0
- run: pnpm install --frozen-lockfile
node-version: 20.1.0
# This creates an .npmrc that reads the NODE_AUTH_TOKEN environment variable
node-registry-url: 'https://registry.npmjs.org'


- name: npm publish
run: pnpm release-plan publish
env:
Expand Down

0 comments on commit bc9090a

Please # to comment.