Skip to content

Commit

Permalink
chore: ci node version
Browse files Browse the repository at this point in the history
  • Loading branch information
wtto00 committed Sep 22, 2023
1 parent afe7359 commit 783d307
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 7 deletions.
40 changes: 33 additions & 7 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,27 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Checkout Code
uses: actions/checkout@v3
with:
ref: ${{ github.event.release.target_commitish }}

- uses: actions/setup-node@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
node-version: 18
version: 8
run_install: false

- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
registry-url: https://npm.pkg.github.com/

- name: Install Dependencies
run: pnpm install --no-frozen-lockfile

- run: npm pkg set publishConfig.registry=https://npm.pkg.github.com
- run: npm publish
env:
Expand All @@ -33,14 +46,27 @@ jobs:
runs-on: ubuntu-latest
name: Publish Npm Package
steps:
- uses: actions/checkout@v3
- name: Checkout Code
uses: actions/checkout@v3
with:
ref: ${{ github.event.release.target_commitish }}

- uses: actions/setup-node@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
version: 8
run_install: false

- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
registry-url: https://registry.npmjs.org

- name: Install Dependencies
run: pnpm install --no-frozen-lockfile

- run: git config --global user.name "GitHub CD bot"
- run: git config --global user.email "[email protected]"
- run: npm publish --access public
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'

- name: Install Dependencies
Expand Down

0 comments on commit 783d307

Please sign in to comment.