Skip to content

Commit 4cefc42

Browse files
committed
fancier publish workflow
1 parent da15789 commit 4cefc42

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/publish.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ jobs:
1414
with:
1515
fetch-depth: 0
1616
filter: tree:0
17-
- uses: actions/setup-node@v4
17+
- uses: Lordfirespeed/setup-node@v0.1
1818
with:
19-
node-version: 20
19+
node-version-file: package.json
2020
registry-url: https://registry.npmjs.org/
21-
- run: yarn install
21+
package-managers: pnpm
22+
- run: pnpm install
2223
- run: git config --global user.name "${{ github.actor }}"
2324
- run: git config --global user.email "github-action-${{ github.actor }}@users.noreply.github.com"
24-
- run: npm version from-git --no-git-tag-version
25-
- run: npm publish --access public
25+
- run: pnpm version from-git --no-git-tag-version
26+
- run: pnpm publish --access public --no-git-checks
2627
env:
2728
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)