Skip to content

Commit

Permalink
chore: introduce semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
yamitzky committed Feb 11, 2025
1 parent 7f6b0f5 commit e3c56d3
Show file tree
Hide file tree
Showing 4 changed files with 1,690 additions and 67 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,16 @@ jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
contents: write
issues: write
pull-requests: write
id-token: write

steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v4
Expand All @@ -29,7 +34,12 @@ jobs:
- name: Build
run: pnpm run build

- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: pnpm audit signatures

- name: Publish to npm
run: pnpm publish -r --provenance --access public --no-git-checks
run: pnpm run release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
17 changes: 15 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@
"lint": "pnpm run -r lint",
"test": "LC_ALL=en_US.UTF-8 vitest",
"typecheck": "pnpm run -r typecheck",
"bundle-monorepo": "node bundle-monorepo.js"
"bundle-monorepo": "node bundle-monorepo.js",
"release": "semantic-release"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"eslint": "^8.38.0",
Expand All @@ -19,6 +22,7 @@
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"semantic-release": "^24.2.2",
"typescript": "^5.1.6",
"vitest": "^3.0.5"
},
Expand All @@ -30,5 +34,14 @@
"url": "https://github.com/yamitzky/synk-calendar.git"
},
"license": "MIT",
"packageManager": "[email protected]"
"packageManager": "[email protected]",
"pnpm": {
"overrides": {
"vite@>=5.1.0 <=5.1.6": ">=5.1.7",
"vite@>=5.0.0 <=5.1.7": ">=5.1.8",
"vite@>=5.0.0 <5.1.8": ">=5.1.8",
"cookie@<0.7.0": ">=0.7.0",
"vite@>=5.0.0 <=5.4.11": ">=5.4.12"
}
}
}
Loading

0 comments on commit e3c56d3

Please sign in to comment.