This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into KDS-1904/tree-shake
- Loading branch information
Showing
1 changed file
with
7 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,22 +13,19 @@ jobs: | |
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
LABEL: ${{ github.event.inputs.label }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v2 | ||
- uses: ./.github/actions/setup | ||
- name: Set npm token | ||
run: | | ||
npm config set "//registry.npmjs.org/:_authToken" "$NPM_TOKEN" | ||
- name: Create canary release and publish to npm | ||
id: changesets | ||
run: | | ||
- run: | | ||
npm config set "//npm.pkg.github.com/:_authToken" "$GITHUB_TOKEN" | ||
- run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "cultureamp-ci" | ||
- run: | | ||
echo "🥚 Building canary-$LABEL" | ||
yarn build | ||
echo "🐣 Releasing canary-$LABEL" | ||
yarn changeset version --snapshot "canary-$LABEL" | ||
yarn changeset publish --tag "canary-$LABEL" | ||
- name: Push tags | ||
run: | | ||
git push --follow-tags |