Skip to content

Commit 78211a9

Browse files
revert to before changeset pre enter command
1 parent 00e52b0 commit 78211a9

File tree

8 files changed

+45
-68
lines changed

8 files changed

+45
-68
lines changed

.changeset/clever-rings-lick.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/pre.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 42 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,61 @@
1-
name: Release
1+
name: Prerelease
22

33
on:
44
release:
55
types: [published]
6+
7+
defaults:
8+
run:
9+
shell: bash
10+
11+
env:
12+
FORCE_COLOR: true
13+
614
jobs:
7-
release:
8-
name: Release
15+
changelog:
16+
name: PR or Release
17+
if: ${{ github.repository_owner == 'ensdomains' }}
18+
runs-on: ubuntu-latest
919
permissions:
10-
id-token: write
1120
contents: write
12-
runs-on: ubuntu-latest
13-
strategy:
14-
matrix:
15-
node-version: [18]
21+
id-token: write
22+
pull-requests: write
1623
steps:
1724
- uses: actions/checkout@v4
18-
with:
19-
ref: ${{ github.event.release.target_commitish }}
2025

21-
- uses: pnpm/action-setup@v4
22-
with:
23-
version: 9.4.0
26+
- uses: actions/checkout@v4
27+
- name: Enable corepack
28+
run: corepack enable pnpm
2429

25-
- name: Install Node.js
26-
uses: actions/setup-node@v4
30+
- uses: actions/setup-node@v4
2731
with:
28-
node-version: ${{ matrix.node-version }}
2932
cache: 'pnpm'
33+
node-version: 18
34+
registry-url: 'https://registry.npmjs.org'
3035

31-
- run: pnpm install --frozen-lockfile
32-
33-
- name: Set up git
34-
run: |
35-
git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com'
36-
git config --local user.name 'github-actions[bot]'
36+
- name: Install dependencies
37+
run: pnpm install
3738

38-
- name: Bump version to ${{ github.event.release.tag_name }}
39-
run: |
40-
pnpm -F @ensdomains/ensjs ver ${{ github.event.release.tag_name }}
41-
git add .
42-
git commit -m "${{ github.event.release.tag_name }}"
39+
- name: Build Packages
40+
run: pnpm -r build
4341

44-
- name: Publish
42+
- name: Fix npmrc
43+
run: npm config set "//registry.npmjs.org/:_authToken" "$NPM_TOKEN"
4544
env:
46-
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
47-
NPM_CONFIG_PROVENANCE: true
48-
run: |
49-
pnpm config set //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}
50-
pnpm -F @ensdomains/ensjs publish --no-git-checks
45+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
46+
47+
- name: Create Release Pull Request or Publish
48+
id: changesets
49+
uses: changesets/action@v1
50+
with:
51+
# Note: pnpm install after versioning is necessary to refresh lockfile
5152

52-
- name: Push changes
53-
run: git push
53+
version: pnpm chgset:version:prerelease
54+
publish: pnpm release
55+
commit: "chore: release"
56+
title: "[ci] release"
5457
env:
55-
github-token: ${{ secrets.GITHUB_TOKEN }}
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
# Needs access to publish to npm
60+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
61+
NPM_CONFIG_PROVENANCE: true

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"publish:local:ens-test-env": "yalc publish packages/ens-test-env --push --up",
99
"publish:local:ensjs": "yalc publish packages/ensjs --push --up",
1010
"chgset:version": "changeset version && pnpm install",
11+
"chgset:version:prerelease": "changeset pre enter next && pnpm chgset:version",
1112
"chgset:run": "changeset",
1213
"release": "pnpm publish -r --access public && changeset tag",
1314
"chgset": "pnpm chgset:run && pnpm chgset:version"

packages/ensjs/CHANGELOG.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
# @ensdomains/ensjs
22

3-
## 4.1.0-next.0
4-
5-
### Minor Changes
6-
7-
- [#220](https://github.com/ensdomains/ensjs/pull/220) [`d548d95`](https://github.com/ensdomains/ensjs/commit/d548d9555741b6d9a99b1e2ec3c20eaca7a186f6) Thanks [@storywithoutend](https://github.com/storywithoutend)! - Add legacy commit and registration functions
8-
93
## 4.0.2
104

115
### Patch Changes

packages/ensjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ensdomains/ensjs",
3-
"version": "4.1.0-next.0",
3+
"version": "4.0.2",
44
"description": "ENS javascript library for contract interaction",
55
"type": "module",
66
"main": "./dist/cjs/index.js",

packages/react/CHANGELOG.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
# @ensdomains/ensjs-react
22

3-
## 0.0.5-next.0
4-
5-
### Patch Changes
6-
7-
- Updated dependencies [[`d548d95`](https://github.com/ensdomains/ensjs/commit/d548d9555741b6d9a99b1e2ec3c20eaca7a186f6)]:
8-
- @ensdomains/ensjs@4.1.0-next.0
9-
103
## 0.0.4
114

125
### Patch Changes

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ensdomains/ensjs-react",
3-
"version": "0.0.5-next.0",
3+
"version": "0.0.4",
44
"description": "ENS javascript library for contract interaction",
55
"type": "module",
66
"main": "./dist/cjs/index.js",

0 commit comments

Comments
 (0)