Skip to content

Commit

Permalink
chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
aooiuu committed Jul 13, 2024
1 parent 6797378 commit cb1db28
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ jobs:
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0

- uses: pnpm/action-setup@v3
with:
version: 9.4.0
- name: Setup Node
uses: actions/setup-node@v4
with:
Expand All @@ -41,10 +44,10 @@ jobs:
- id: short_sha
run: echo "::set-output name=value::$(git rev-parse --short HEAD)"

# - name: fix pnpm.cjs
# if: matrix.os == 'windows-latest'
# run: sed -i 's/\/usr\/bin\/env node/node/g' C:/Users/runneradmin/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/bin/pnpm.cjs
# shell: bash
- name: fix pnpm.cjs
if: matrix.os == 'windows-latest'
run: sed -i 's/\/usr\/bin\/env node/node/g' C:/Users/runneradmin/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/bin/pnpm.cjs
shell: bash

- run: pnpm install
- run: pnpm run build
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,18 @@ jobs:
fetch-depth: 0

- uses: pnpm/action-setup@v3
with:
version: 9.4.0
- uses: actions/setup-node@v4
with:
node-version: 20
# cache: pnpm
registry-url: "https://registry.npmjs.org"

# - name: fix pnpm.cjs
# if: matrix.os == 'windows-latest'
# run: sed -i 's/\/usr\/bin\/env node/node/g' C:/Users/runneradmin/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/bin/pnpm.cjs
# shell: bash
- name: fix pnpm.cjs
if: matrix.os == 'windows-latest'
run: sed -i 's/\/usr\/bin\/env node/node/g' C:/Users/runneradmin/setup-pnpm/node_modules/.pnpm/pnpm@9.4.0/node_modules/pnpm/bin/pnpm.cjs
shell: bash

- run: npx changelogithub
env:
Expand Down

0 comments on commit cb1db28

Please sign in to comment.