Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ on:
merge_group:
types: [checks_requested]

env:
GH_TOKEN: ${{ secrets.FRONTEND_GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -51,6 +46,7 @@ jobs:
name: Canary
permissions:
contents: read
pull-requests: write
id-token: write
needs: build
steps:
Expand Down Expand Up @@ -78,3 +74,7 @@ jobs:

- name: Create Canary Release
run: yarn auto canary
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
21 changes: 12 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,19 @@ on:
branches:
- 'master'

env:
GITHUB_TOKEN: ${{ secrets.FRONTEND_GH_TOKEN }}
GH_TOKEN: ${{ secrets.FRONTEND_GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true

jobs:
build:
runs-on: ubuntu-latest
name: Build
permissions:
contents: read
pull-requests: read
if: "!contains(github.event.head_commit.message, 'skip-release')"
outputs:
version_bumped: ${{ steps.version-check.outputs.version_bumped }}
steps:
- uses: actions/checkout@v6
with:
token: ${{ secrets.FRONTEND_GH_TOKEN }}
fetch-depth: 0
fetch-tags: true

Expand All @@ -37,6 +33,8 @@ jobs:

- name: Apply semver updates (if any)
id: version-check
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
AUTO_VERSION=$(yarn auto version)
EXIT_CODE=$?
Expand Down Expand Up @@ -70,15 +68,16 @@ jobs:
runs-on: ubuntu-latest
name: Publish
permissions:
contents: read
contents: write
pull-requests: write
issues: write
id-token: write
needs: build
if: needs.build.outputs.version_bumped == 'true'
environment: production
steps:
- uses: actions/checkout@v6
with:
token: ${{ secrets.FRONTEND_GH_TOKEN }}
fetch-depth: 0
fetch-tags: true

Expand All @@ -101,3 +100,7 @@ jobs:

- name: Create Release
run: yarn auto shipit
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
Loading