-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c209bd1
commit 9754c7d
Showing
2 changed files
with
67 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
nonce: | ||
type: string | ||
required: true | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
|
||
- name: Restore cached build files | ||
uses: actions/cache@v4 | ||
with: | ||
key: ${{ inputs.nonce }} | ||
path: | | ||
./css/dist | ||
./icon-registry/dist | ||
./components | ||
./node_modules | ||
- name: Install Dependencies | ||
run: yarn install --frozen-lockfile | ||
env: | ||
CI: true | ||
|
||
- name: Set committer info | ||
## attribute the commit to cypress-bot: https://github.community/t/logging-into-git-as-a-github-app/115916 | ||
run: | | ||
git config --local user.email "${{ secrets.CYPRESS_BOT_APP_ID }}+cypress-bot[bot]@users.noreply.github.com" | ||
git config --local user.name "cypress-bot[bot]" | ||
- name: Configure .npmrc | ||
run: | | ||
cat << EOF > "$HOME/.npmrc" | ||
//registry.npmjs.org/:_authToken=$NPM_TOKEN | ||
EOF | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Set version numbers | ||
run: node scripts/set-version.mjs | ||
|
||
- name: Run pre-release process with changeset | ||
run: | | ||
yarn changeset pre enter next | ||
yarn changeset version | ||
yarn changeset publish |
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