File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 1919 -w "/app" \
2020 -v $PWD:/app \
2121 node:8 bash -c "npm i --no-save -q; npm run build; npm run coverage -- --reporter mocha-junit-reporter; chown -R $(id -u):$(id -g) ."
22-
22+ - name : Setup .npmrc
23+ run : echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
24+ env :
25+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
26+ - name : Build, Version, and Publish to npm using Docker
27+ env :
28+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
29+ NPM_VERSION : ' 1.0.0'
30+ run : |
31+ docker run --rm \
32+ -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) ."
You can’t perform that action at this time.
0 commit comments