Skip to content

Commit 8db257e

Browse files
committed
build: ignore git changes while publishing npm package
1 parent 05fe04a commit 8db257e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/preview.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- args: [--no-frozen-lockfile]
2828
- uses: actions/setup-node@v3
2929
with:
30-
node-version: 16.x
30+
node-version: 18.x
3131
cache: pnpm
3232
- uses: actions/setup-python@v4
3333
with:

.github/workflows/release.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,9 @@ jobs:
177177
tar -zcvf rtbot-npm-${{ github.ref_name }}.tar.gz npm-rtbot
178178
- name: Release Npm Packages
179179
run: |
180-
cd npm-wasm && pnpm publish
181-
cd npm-rtbot && pnpm publish
180+
rm -rf node_modules package.json pnpm pnpm-lock.yaml
181+
cd npm-wasm && pnpm publish --no-git-checks && cd..
182+
cd npm-rtbot && pnpm publish --no-git-checks
182183
env:
183184
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
184185

0 commit comments

Comments
 (0)