fix: publish
This commit is contained in:
parent
e189b3aa91
commit
18d707f8ce
1 changed files with 11 additions and 5 deletions
|
@ -34,11 +34,17 @@ jobs:
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: npm test
|
run: npm test
|
||||||
|
|
||||||
|
- name: Prepare Package
|
||||||
|
run: |
|
||||||
|
cp package.json dist/
|
||||||
|
cp README.md dist/
|
||||||
|
mv dist lhmask
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
name: Upload lhmask to GitHub
|
name: Upload lhmask to GitHub
|
||||||
with:
|
with:
|
||||||
name: dist
|
name: lhmask
|
||||||
path: dist
|
path: lhmask
|
||||||
|
|
||||||
publish-staging:
|
publish-staging:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
@ -53,10 +59,10 @@ jobs:
|
||||||
- name: Download lhmask
|
- name: Download lhmask
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: dist
|
path: lhmask
|
||||||
name: dist
|
name: lhmask
|
||||||
|
|
||||||
- run: npm publish --provenance --access public
|
- run: cd lhmask && npm publish --provenance --access public
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue