From 88e2e58df9618314dd20356928db3d2e697c563a Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Tue, 18 Oct 2022 16:09:58 +0200 Subject: [PATCH] release --- .github/workflows/release.yaml | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..7633fe3 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,35 @@ +name: "Publish to NPM" + +on: + release: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install Node + uses: actions/setup-node@v3 + with: + node-version: 16 + registry-url: "https://registry.npmjs.org" + + - name: Setup PNPM + uses: pnpm/action-setup@v2 + with: + version: 7 + + - name: Install dependencies + run: pnpm install + - name: Install Playwright + run: pnpm exec playwright install-deps + - name: Run tests + run: pnpm run test + + - name: Release + run: pnpm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}