Skip to content

Commit

Permalink
ci: update release (#27)
Browse files Browse the repository at this point in the history
Signed-off-by: donniean <donniean1@gmail.com>
  • Loading branch information
donniean authored Jul 16, 2024
1 parent f53f58d commit 7b556a3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 17 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/release-canary.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release Snapshot
name: Release Canary

on:
push:
Expand All @@ -12,28 +12,30 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 16

- name: Install Yarn
run: npm install -g yarn

- name: Install Dependencies
run: yarn
run: yarn install

- name: Build
run: yarn build

- name: changeset version
- name: Version
run: yarn changeset version --snapshot canary

- name: Creating .npmrc
- name: Create .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/release-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,30 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 16

- name: Install Yarn
run: npm install -g yarn

- name: Install Dependencies
run: yarn
run: yarn install

- name: Build
run: yarn build

- name: changeset version
- name: Version
run: yarn changeset version --snapshot next

- name: Creating .npmrc
- name: Create .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,22 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 16

- name: Install Yarn
run: npm install -g yarn

- name: Install Dependencies
run: yarn
run: yarn install

- name: Build
run: yarn build
Expand Down

0 comments on commit 7b556a3

Please sign in to comment.