From 5b274ff84a11f1b3fb1aaedb4564aea01d80e92f Mon Sep 17 00:00:00 2001 From: Justin Spahr-Summers Date: Tue, 29 Oct 2024 12:12:35 +0000 Subject: [PATCH] Test workflow --- .github/workflows/main.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0b3e27aa..0c975bf7 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'