Skip to content

Commit

Permalink
fix publish command
Browse files Browse the repository at this point in the history
  • Loading branch information
sepbot committed Oct 8, 2024
1 parent 5310460 commit 7c1dea7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
18 changes: 6 additions & 12 deletions .github/actions/publish/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,11 @@ runs:
node-version-file: package.json
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v4
- run: pnpm install --frozen-lockfile
shell: bash
- run: pnpm run generate
shell: bash
- run: pnpm run build
shell: bash
- run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
shell: bash
env:
NODE_AUTH_TOKEN: ${{github.event.inputs.node-auth-token}}
- run: pnpm publish --tag latest --no-git-checks --access=public
shell: bash
- shell: bash
env:
NODE_AUTH_TOKEN: ${{github.event.inputs.node-auth-token}}
run: |
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc
pnpm install --frozen-lockfile
pnpm run build
pnpm publish --tag latest --no-git-checks --access=public
11 changes: 5 additions & 6 deletions .github/actions/test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ runs:
with:
node-version-file: package.json
- uses: pnpm/action-setup@v4
- run: pnpm install --frozen-lockfile
shell: bash
- run: pnpm run generate
shell: bash
- run: pnpm run test
shell: bash
- shell: bash
run: |
pnpm install --frozen-lockfile
pnpm run generate
pnpm run test

0 comments on commit 7c1dea7

Please sign in to comment.