From 82916ca71d3b297645243774f6589f7bf1030f69 Mon Sep 17 00:00:00 2001 From: Adam Skoufis Date: Tue, 12 Nov 2024 09:54:33 +1100 Subject: [PATCH] Add snapshot workflow --- .github/workflows/snapshot.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/snapshot.yml diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml new file mode 100644 index 0000000..8719a28 --- /dev/null +++ b/.github/workflows/snapshot.yml @@ -0,0 +1,32 @@ +name: Snapshot + +on: workflow_dispatch + +jobs: + release: + name: Publish snapshot version + runs-on: ubuntu-latest + env: + CI: true + steps: + - name: Check out repo + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: pnpm/action-setup@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + cache: pnpm + node-version-file: package.json + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Publish + uses: seek-oss/changesets-snapshot@v0 + env: + GITHUB_TOKEN: ${{ secrets.SEEK_OSS_CI_GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }}