From 20a2530425942fff3e018990113e9dabaf7ba0dc Mon Sep 17 00:00:00 2001 From: Sam Mayer Date: Tue, 1 Oct 2024 12:09:18 -0500 Subject: [PATCH] Define test sequence once --- .github/workflows/release.yml | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cdc3645e..125b4c43 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,11 @@ on: push: branches: - main + - 392-e2e-in-ci + workflow_run: + workflows: ["Node.js Workflow"] + types: + - completed permissions: contents: read # for checkout @@ -22,25 +27,8 @@ jobs: with: fetch-depth: 0 - - name: Setup Node.js - uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 - with: - node-version: "lts/*" - - - name: Install dependencies - run: npm ci - - - name: Build - run: npm run build - - - name: Test - run: npm test - - - name: Test E2E - run: npm run test:e2e - - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npx semantic-release + run: npx semantic-release --help