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
|
||||
run: npm test
|
||||
|
||||
- name: Prepare Package
|
||||
run: |
|
||||
cp package.json dist/
|
||||
cp README.md dist/
|
||||
mv dist lhmask
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
name: Upload lhmask to GitHub
|
||||
with:
|
||||
name: dist
|
||||
path: dist
|
||||
name: lhmask
|
||||
path: lhmask
|
||||
|
||||
publish-staging:
|
||||
runs-on: docker
|
||||
|
@ -53,10 +59,10 @@ jobs:
|
|||
- name: Download lhmask
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
path: dist
|
||||
name: dist
|
||||
path: lhmask
|
||||
name: lhmask
|
||||
|
||||
- run: npm publish --provenance --access public
|
||||
- run: cd lhmask && npm publish --provenance --access public
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue