Test workflow

This commit is contained in:
Justin Spahr-Summers 2024-10-29 12:12:35 +00:00
commit 5b274ff84a
No known key found for this signature in database

View file

@ -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'