Skip to content

Commit

Permalink
chore: Modify publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kevintyj committed Nov 22, 2023
1 parent 9cbd5b4 commit 75e27e9
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "kevintyj/conventionalsets" }],
"changelog": ["@changesets/changelog-github", { "repo": "kevintyj/prlint" }],
"commit": false,
"title": "chore: Release ",
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
"ignore": [],
"version": true,
"tag": true
}
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
id-token: write
steps:
- name: 🔖Checkout repository
uses: actions/checkout@v3
Expand Down Expand Up @@ -36,4 +40,3 @@ jobs:
title: 'ci(release): Version packages'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"conventional",
"github"
],
"publishConfig": {
"provenance": true
},
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
Expand All @@ -41,6 +44,7 @@
},
"devDependencies": {
"@antfu/eslint-config": "^2.1.0",
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.2",
"@commitlint/cli": "^18.4.3",
"@commitlint/types": "^18.1.0",
Expand Down
58 changes: 58 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 75e27e9

Please sign in to comment.