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
41 changes: 0 additions & 41 deletions .github/actions/upload-versions/action.yml

This file was deleted.

50 changes: 19 additions & 31 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Release

on:
push:
# Ignore merge queue branches and all tags
branches-ignore:
- 'gh-readonly-queue/**'
tags-ignore:
- '**'
workflow_dispatch:

concurrency:
Expand Down Expand Up @@ -54,7 +59,9 @@ jobs:
publish: npm run release
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
- uses: ./.github/actions/upload-versions

- name: Upload versions json file
uses: primer/.github/.github/actions/upload-versions@v2.4.0

release-candidate:
if: github.ref_name == 'changeset-release/main'
Expand Down Expand Up @@ -94,21 +101,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Output candidate version
uses: actions/github-script@a3e7071a34d7e1f219a8a4de9a5e0a34d1ee1293
with:
script: |
const package = require(`${process.env.GITHUB_WORKSPACE}/packages/react/package.json`)
github.repos.createCommitStatus({
owner: context.repo.owner,
repo: context.repo.repo,
sha: context.sha,
state: 'success',
context: `Published ${package.name}`,
description: package.version,
target_url: `https://unpkg.com/${package.name}@${package.version}/`
})
- uses: ./.github/actions/upload-versions
- name: Report versions
uses: primer/.github/.github/actions/report-versions@v2.4.0

- name: Upload versions json file
uses: primer/.github/.github/actions/upload-versions@v2.4.0

release-canary:
name: Canary
Expand Down Expand Up @@ -140,18 +137,9 @@ jobs:
npx changeset publish --tag canary
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Output canary version
uses: actions/github-script@a3e7071a34d7e1f219a8a4de9a5e0a34d1ee1293
with:
script: |
const package = require(`${process.env.GITHUB_WORKSPACE}/packages/react/package.json`)
github.repos.createCommitStatus({
owner: context.repo.owner,
repo: context.repo.repo,
sha: context.sha,
state: 'success',
context: `Published ${package.name}`,
description: package.version,
target_url: `https://unpkg.com/${package.name}@${package.version}/`
})
- uses: ./.github/actions/upload-versions

- name: Report versions
uses: primer/.github/.github/actions/report-versions@v2.4.0

- name: Upload versions json file
uses: primer/.github/.github/actions/upload-versions@v2.4.0
Loading