Skip to content

Commit

Permalink
Define test sequence once
Browse files Browse the repository at this point in the history
  • Loading branch information
samayer12 committed Oct 1, 2024
1 parent aceadcc commit 20a2530
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 20a2530

Please sign in to comment.