Skip to content

Commit 47e9fa1

Browse files
authored
Small tweaks in the setup (#28)
1 parent b815d39 commit 47e9fa1

File tree

6 files changed

+48
-16
lines changed

6 files changed

+48
-16
lines changed

.changeset/config.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3-
"changelog": "@changesets/cli/changelog",
3+
"changelog": ["@changesets/changelog-github", { "repo": "changesets/ghcommit" }],
44
"commit": false,
55
"fixed": [],
66
"linked": [],
7-
"access": "restricted",
7+
"access": "public",
88
"baseBranch": "main",
99
"updateInternalDependencies": "patch",
1010
"ignore": []

.github/workflows/ci.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: CI Checks
2-
on:
2+
on:
33
pull_request:
44
push:
55
branches:
@@ -23,7 +23,7 @@ jobs:
2323
run: |
2424
VERSION=$(cat package.json | grep '"packageManager": "pnpm@' | sed 's/.*"pnpm@\([^"]*\)".*/\1/')
2525
npm install -g pnpm@$VERSION
26-
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v 4.2.3
26+
- uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
2727
with:
2828
path: ~/.pnpm-store
2929
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}

.github/workflows/release-and-publish.yaml

+2-9
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,11 @@ on:
88
permissions:
99
contents: write
1010
pull-requests: write
11-
id-token: write
1211

1312
jobs:
1413
release-and-publish:
1514
runs-on: ubuntu-latest
16-
environment: main
1715
steps:
18-
1916
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2017
with:
2118
token: ${{ secrets.GITHUB_TOKEN }}
@@ -28,20 +25,16 @@ jobs:
2825
VERSION=$(cat package.json | grep '"packageManager": "pnpm@' | sed 's/.*"pnpm@\([^"]*\)".*/\1/')
2926
npm install -g pnpm@$VERSION
3027
- name: Cache pnpm modules
31-
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v 4.2.3
28+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
3229
with:
3330
path: ~/.pnpm-store
3431
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
3532
- run: pnpm install --frozen-lockfile
3633
- run: pnpm build
37-
- name: Configure PNPM to use token
38-
run:
39-
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> .npmrc
4034
- name: Run Changeset Workflow
41-
uses: s0/changesets-action@63d3e3fda2c00696414ca2d6683e046289c13fd8 # v2.1.0
35+
uses: changesets/action@06245a4e0a36c064a573d4150030f5ec548e4fcc # v1.4.10
4236
env:
4337
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4438
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4539
with:
4640
publish: pnpm changeset publish
47-
createGithubReleases: true

.npmrc

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
provenance=true
21
//registry.npmjs.org/:_authToken=${NPM_TOKEN}

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "@changesets/ghcommit",
33
"version": "1.3.0",
4-
"private": false,
54
"description": "Directly change files on github using the github API, to support GPG signing",
65
"keywords": [
76
"actions",
@@ -56,6 +55,7 @@
5655
"devDependencies": {
5756
"@actions/github": "^6.0.0",
5857
"@changesets/cli": "^2.27.7",
58+
"@changesets/changelog-github": "^0.5.1",
5959
"@graphql-codegen/cli": "^5.0.2",
6060
"@graphql-codegen/import-types-preset": "^3.0.0",
6161
"@graphql-codegen/typescript": "^4.0.4",
@@ -92,4 +92,4 @@
9292
"dependencies": {
9393
"isomorphic-git": "^1.27.1"
9494
}
95-
}
95+
}

pnpm-lock.yaml

+40
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)