diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0b3e27a..0c975bf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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'