diff --git a/.changeset/violet-deers-listen.md b/.changeset/violet-deers-listen.md new file mode 100644 index 0000000..948a5b0 --- /dev/null +++ b/.changeset/violet-deers-listen.md @@ -0,0 +1,5 @@ +--- +'client-analytics': patch +--- + +Fixed publish auto deployment diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6e005bd..a6ae258 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,7 @@ on: concurrency: ${{ github.workflow }}-${{ github.ref }} jobs: - version: + release: name: Release runs-on: ubuntu-latest environment: release @@ -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 diff --git a/package.json b/package.json index 837362b..84fafcd 100644 --- a/package.json +++ b/package.json @@ -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",