Skip to content

Commit

Permalink
[fix] Fixed changeset configuration file (#31)
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Macri <[email protected]>
  • Loading branch information
giuseppe-coinbase authored Dec 18, 2023
1 parent ee718d4 commit b21a516
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
5 changes: 5 additions & 0 deletions .changeset/violet-deers-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'client-analytics': patch
---

Fixed publish auto deployment
16 changes: 6 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
version:
release:
name: Release
runs-on: ubuntu-latest
environment: release
Expand All @@ -17,21 +17,17 @@ jobs:
pull-requests: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
submodules: recursive
node-version: 18.x
cache: 'npm'

- name: "Setup"
uses: ./.github/actions/setup

- name: Install
shell: bash
run: yarn

- name: Set deployment token
run: npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}"

# https://github.com/changesets/action#with-publishing
- name: Handle Release Pull Request or Publish to npm
id: changesets
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
"test:watch": "vitest",
"format": "prettier . --check",
"format:fix": "prettier . --write",
"release:check": "changeset status --verbose --since=origin/master",
"release:publish": "yarn install && yarn build && changeset publish",
"release:add": "changeset add",
"release:version": "changeset version && yarn install --lockfile-only",
"release:add": "changeset add"
"release:check": "changeset status --verbose --since=origin/master",
"release:publish": "yarn install && yarn build && changeset publish"
},
"devDependencies": {
"@changesets/changelog-github": "^0.4.8",
Expand Down

0 comments on commit b21a516

Please sign in to comment.