Skip to content

Commit

Permalink
chore(ci): Minor release workflow improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
wottpal committed Jul 30, 2024
1 parent 67108f0 commit 80ec259
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 16 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
Expand Down Expand Up @@ -34,16 +37,16 @@ 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
uses: changesets/action@v1
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 }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
7 changes: 1 addition & 6 deletions packages/resolver-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
7 changes: 1 addition & 6 deletions packages/resolver-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit 80ec259

Please sign in to comment.