Skip to content

Commit 2ad8dfd

Browse files
authored
Fix: docker command format in the npm publish step
1 parent 654bfbd commit 2ad8dfd

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,12 @@ jobs:
2323
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
2424
env:
2525
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
26-
- name: Build, Version, and Publish to npm using Docker
26+
- name: Build and Publish to npmjs
2727
env:
28-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
29-
NPM_VERSION: '1.0.0'
28+
NPM_VERSION: '1.0.0'
3029
run: |
3130
docker run --rm \
3231
-w "/app" \
33-
-v $PWD:/app \
34-
-v ${{ github.workspace }}/.npmrc:/root/.npmrc \
35-
node:16 bash -c "npm i --no-save -q; npm run build; npm version ${NPM_VERSION} > version.txt; npm publish --tag dev; chown -R $(id -u):$(id -g) ."
32+
-v "$PWD:/app" \
33+
-v "${{ github.workspace }}/.npmrc:/root/.npmrc" \
34+
node:8 bash -c "npm i --no-save -q; npm run build; npm version ${NPM_VERSION} > version.txt; npm publish --tag dev; chown -R $(id -u):$(id -g) ."

0 commit comments

Comments
 (0)