Skip to content

Commit 5b274ff

Browse files
committed
Test workflow
1 parent 477f014 commit 5b274ff

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/main.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,29 @@ jobs:
2222
- run: npm test
2323
- run: npm run lint
2424

25+
package-test:
26+
runs-on: ubuntu-latest
27+
if: github.ref == 'refs/heads/justin/publish-packs'
28+
29+
permissions:
30+
contents: write
31+
32+
steps:
33+
- uses: actions/checkout@v4
34+
- uses: actions/setup-node@v4
35+
with:
36+
node-version: 18
37+
cache: npm
38+
39+
- run: npm ci
40+
- run: npm pack
41+
42+
- name: Upload package to release
43+
env:
44+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
run: |
46+
gh release upload 0.1.0 ./*.tgz
47+
2548
package:
2649
runs-on: ubuntu-latest
2750
if: github.event_name == 'release'

0 commit comments

Comments
 (0)