Skip to content

Commit

Permalink
ci: return release workflows to main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
domwebber committed Dec 16, 2023
1 parent 862f2f4 commit a11b31b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 49 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,30 @@ jobs:
os: ubuntu-latest

release:
uses: ./.github/workflows/release.yml
needs:
- test-ubuntu
- lint
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version: 20
cache: npm
- run: npm ci --prefer-offline --no-audit --no-fund
- run: npm audit signatures
- uses: changesets/action@v1
with:
publish: npm run release
title: "chore(release): version packages"
commit: "chore(release): version packages"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
11 changes: 0 additions & 11 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,3 @@ jobs:
needs: prepare-npm-cache-ubuntu
with:
os: ubuntu-latest

release:
uses: ./.github/workflows/release.yml
needs:
- test-ubuntu
- lint
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
34 changes: 0 additions & 34 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit a11b31b

Please sign in to comment.