Skip to content

Commit

Permalink
chore: update release.yml with the new environment
Browse files Browse the repository at this point in the history
  • Loading branch information
dnotes committed Nov 10, 2024
1 parent e1f30f6 commit 39e045e
Showing 1 changed file with 35 additions and 6 deletions.
41 changes: 35 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,42 @@ on:
- main

jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
issues: read
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: pnpm/action-setup@v4
with:
version: 9

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'

- name: Install Dependencies
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm build

- name: Install playwright
run: pnpx playwright install --with-deps chromium

- name: Run Tests
run: pnpm -w run test

release:
needs: test
environment: npm-publish
permissions:
contents: write
pull-requests: write
Expand Down Expand Up @@ -35,12 +70,6 @@ jobs:
- name: Build
run: pnpm build

- name: Install playwright
run: pnpx playwright install --with-deps chromium

- name: Run Tests
run: pnpm -w run test

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
Expand Down

0 comments on commit 39e045e

Please sign in to comment.