Skip to content

Commit 42d1785

Browse files
authored
Merge pull request #48 from MacPaw/master
Release
2 parents 9dc2072 + 7649aa7 commit 42d1785

File tree

3 files changed

+2371
-2136
lines changed

3 files changed

+2371
-2136
lines changed

.changeset/ready-zoos-sink.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@macpaw/eslint-config-base": patch
3+
"@macpaw/eslint-config-prettier": patch
4+
"@macpaw/eslint-config-react": patch
5+
"@macpaw/eslint-config-typescript": patch
6+
---
7+
8+
Just a patch to check a new publishing

.github/workflows/release.yml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
concurrency:
99
group: ${{ github.workflow }}-${{ github.ref }}
1010

11+
permissions:
12+
id-token: write # Required for Trusted publishing
13+
contents: write
14+
pull-requests: write
15+
1116
jobs:
1217
release:
1318
name: Release
@@ -32,22 +37,25 @@ jobs:
3237
uses: ./.github/actions/prepare-node
3338
id: prepare-node
3439
with:
35-
node-version: 18
36-
registry-url: 'https://registry.npmjs.org/'
37-
package-manager: 'pnpm'
38-
scope: '@macpaw'
40+
node-version: 20
41+
registry-url: "https://registry.npmjs.org/"
42+
package-manager: "pnpm"
43+
scope: "@macpaw"
44+
45+
# Trusted publishing requires npm CLI version 11.5.1 or later.
46+
- name: Update npm
47+
run: npm install -g npm@latest
3948

4049
- name: Create Release or publish to NPM Registry
4150
id: changesets
4251
uses: changesets/action@v1
4352
with:
4453
publish: pnpm changes:release
45-
title: 'ci(changesets): :package: version update for packages'
46-
commit: 'chore(release): version update for packages'
54+
title: "ci(changesets): :package: version update for packages"
55+
commit: "chore(release): version update for packages"
4756
setupGitUser: false
4857
env:
4958
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5159

5260
- name: Generate outputs
5361
id: releaseOutputs
@@ -63,10 +71,10 @@ jobs:
6371
steps:
6472
- name: Cancel previous jobs
6573
uses: styfle/[email protected]
66-
74+
6775
- name: Checkout
6876
uses: actions/checkout@v3
69-
77+
7078
- name: Configure git user
7179
uses: ./.github/actions/github-config
7280
with:
@@ -77,10 +85,10 @@ jobs:
7785
uses: ./.github/actions/prepare-node
7886
id: prepare-node
7987
with:
80-
node-version: 18
81-
registry-url: https://npm.pkg.github.com/
82-
package-manager: 'pnpm'
83-
scope: '@macpaw'
88+
node-version: 20
89+
registry-url: "https://npm.pkg.github.com/"
90+
package-manager: "pnpm"
91+
scope: "@macpaw"
8492

8593
- name: Publish to Github Registry
8694
id: changesets

0 commit comments

Comments
 (0)