Skip to content

Commit

Permalink
Attempt to fix publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
hirasso committed Sep 26, 2024
1 parent ec01ca9 commit e464d79
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20

- name: Setup pnpm
uses: pnpm/action-setup@v3 # @see https://stackoverflow.com/a/74885077/586823
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,19 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
registry-url: https://registry.npmjs.org

- name: Setup pnpm
uses: pnpm/action-setup@v3 # @see https://stackoverflow.com/a/74885077/586823
- name: Install pnpm
run: npm install -g pnpm

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

- run: pnpm publish --access public
- name: Build package
run: pnpm run build # Adjust if your build command is different

- name: Publish package
run: pnpm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit e464d79

Please sign in to comment.