From 80ec25942064cfdb55c06bff21fe6133a8faaf64 Mon Sep 17 00:00:00 2001 From: Dennis Zoma Date: Tue, 30 Jul 2024 14:36:38 +0200 Subject: [PATCH] chore(ci): Minor release workflow improvements --- .github/workflows/release.yml | 9 ++++++--- package.json | 2 +- packages/resolver-core/package.json | 7 +------ packages/resolver-react/package.json | 7 +------ 4 files changed, 9 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2c4b3c2..68adb68 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,3 +1,4 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json name: Release on: @@ -5,6 +6,8 @@ on: branches: - main +concurrency: ${{ github.workflow }}-${{ github.ref }} + jobs: release: name: Release @@ -34,7 +37,7 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install Dependencies - run: pnpm i + run: pnpm install --frozen-lockfile - name: Create Release Pull Request or Publish to npm id: changesets @@ -42,8 +45,8 @@ jobs: with: title: 'chore(changeset): Bump package version' commit: 'chore(changeset): Bump package version' - version: pnpm changeset:version - publish: pnpm changeset:publish + version: pnpm run changeset:version + publish: pnpm run changeset:publish env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 337387d..1d68fb2 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "pre-commit": "pnpm nano-staged" }, "nano-staged": { - "*.{js,ts,cjs,mjs,jsx,tsx,json,jsonc}": "biome check --write --no-errors-on-unmatched", + "*.{js,ts,cjs,mjs,jsx,tsx,json,jsonc}": "biome check --write", "*.{md,mdx,html,css,sass,scss,yml,yaml}": "prettier . --write" }, "devDependencies": { diff --git a/packages/resolver-core/package.json b/packages/resolver-core/package.json index 5a8f7fa..b56c2f2 100644 --- a/packages/resolver-core/package.json +++ b/packages/resolver-core/package.json @@ -18,12 +18,7 @@ "default": "./dist/index.js" } }, - "files": [ - "package.json", - "LICENSE", - "README.md", - "dist" - ], + "files": ["package.json", "LICENSE", "README.md", "dist"], "engines": { "node": ">=18" }, diff --git a/packages/resolver-react/package.json b/packages/resolver-react/package.json index 11107db..e5071dc 100644 --- a/packages/resolver-react/package.json +++ b/packages/resolver-react/package.json @@ -18,12 +18,7 @@ "default": "./dist/index.js" } }, - "files": [ - "package.json", - "LICENSE", - "README.md", - "dist" - ], + "files": ["package.json", "LICENSE", "README.md", "dist"], "engines": { "node": ">=18" },