Test workflow
This commit is contained in:
parent
477f014b8c
commit
5b274ff84a
1 changed files with 23 additions and 0 deletions
23
.github/workflows/main.yml
vendored
23
.github/workflows/main.yml
vendored
|
|
@ -22,6 +22,29 @@ jobs:
|
|||
- run: npm test
|
||||
- run: npm run lint
|
||||
|
||||
package-test:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.ref == 'refs/heads/justin/publish-packs'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
cache: npm
|
||||
|
||||
- run: npm ci
|
||||
- run: npm pack
|
||||
|
||||
- name: Upload package to release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
gh release upload 0.1.0 ./*.tgz
|
||||
|
||||
package:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event_name == 'release'
|
||||
|
|
|
|||
Loading…
Reference in a new issue