Skip to content

Commit

Permalink
update changeset gh action to trigger release (#3918)
Browse files Browse the repository at this point in the history
* update changeset gh action to trigger release

* add NPM token to npm config
  • Loading branch information
gyfchong authored Jul 28, 2023
1 parent 3748c30 commit 07d93d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
16 changes: 0 additions & 16 deletions .buildkite/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,6 @@ x-defaults: &defaults
run: build

steps:
- name: ":butterfly: Release"
command: ".buildkite/scripts/release.sh"
timeout_in_minutes: 15
if: build.env("CHANGESETS_RELEASE") == "true" || (build.branch == "main" && build.author.name == "github-actions[bot]")
<<: *defaults
plugins:
- cultureamp/aws-assume-role#v0.2.0:
role: "${KAIZEN_ROLE_ARN}"
- docker-compose#v3.9.0:
run: release
notify:
- slack: "#wol_kaizen"
if: build.state == "passed"
- slack: "#wol_kaizen"
if: build.state == "failed"

- name: ":hatched_chick: Release (canary)"
command: ".buildkite/scripts/release.sh"
timeout_in_minutes: 15
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/changeset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@ on:
jobs:
version:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ github.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- name: Create Release Pull Request
- name: Create Release Pull Request or Publish to npm
- run: |
npm config set "//registry.npmjs.org/:_authToken" "$NPM_TOKEN"
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ github.token }}
with:
title: "Changeset: Version packages"
commit: "version packages"
version: yarn ci:version
publish: yarn ci:publish

0 comments on commit 07d93d1

Please sign in to comment.