Skip to content

Commit

Permalink
revert changeset changes
Browse files Browse the repository at this point in the history
  • Loading branch information
storywithoutend committed Jan 7, 2025
1 parent bcbdd64 commit d5615f5
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 69 deletions.
5 changes: 0 additions & 5 deletions .changeset/clever-rings-lick.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/pre.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
with:
# Note: pnpm install after versioning is necessary to refresh lockfile
version: pnpm chgset:version
publish: pnpm release --no-git-checks
publish: pnpm release
commit: "chore: release"
title: "[ci] release"
env:
Expand Down
78 changes: 42 additions & 36 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,61 @@
name: Release
name: Prerelease

on:
release:
types: [published]
name: Release

defaults:
run:
shell: bash

env:
FORCE_COLOR: true

jobs:
release:
name: Release
changelog:
name: PR or Release
if: ${{ github.repository_owner == 'ensdomains' }}
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
id-token: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.release.target_commitish }}

- uses: pnpm/action-setup@v4
with:
version: 9.4.0
- uses: actions/checkout@v4
- name: Enable corepack
run: corepack enable pnpm

- name: Install Node.js
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
node-version: 18
registry-url: 'https://registry.npmjs.org'

- run: pnpm install --frozen-lockfile
- name: Install dependencies
run: pnpm install

- name: Set up git
run: |
git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com'
git config --local user.name 'github-actions[bot]'
- name: Build Packages
run: pnpm -r build

- name: Bump version to ${{ github.event.release.tag_name }}
run: |
pnpm -F @ensdomains/ensjs ver ${{ github.event.release.tag_name }}
git add .
git commit -m "${{ github.event.release.tag_name }}"
- name: Publish
- name: Fix npmrc
run: npm config set "//registry.npmjs.org/:_authToken" "$NPM_TOKEN"
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
run: |
pnpm config set //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}
pnpm -F @ensdomains/ensjs publish --no-git-checks
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Push changes
run: git push
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
# Note: pnpm install after versioning is necessary to refresh lockfile
version: pnpm chgset:version:prerelease
publish: pnpm release --no-git-checks
commit: "chore: release"
title: "[ci] release"
env:
github-token: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Needs access to publish to npm
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"publish:local:ens-test-env": "yalc publish packages/ens-test-env --push --up",
"publish:local:ensjs": "yalc publish packages/ensjs --push --up",
"chgset:version": "changeset version && pnpm install",
"chgset:version:prerelease": "changeset pre enter next && pnpm chgset:version",
"chgset:run": "changeset",
"release": "pnpm publish -r --access public && changeset tag",
"chgset": "pnpm chgset:run && pnpm chgset:version"
Expand Down
6 changes: 0 additions & 6 deletions packages/ensjs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
# @ensdomains/ensjs

## 4.1.0-next.0

### Minor Changes

- [#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

## 4.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ensjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ensdomains/ensjs",
"version": "4.1.0-next.0",
"version": "4.0.2",
"description": "ENS javascript library for contract interaction",
"type": "module",
"main": "./dist/cjs/index.js",
Expand Down
7 changes: 0 additions & 7 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
# @ensdomains/ensjs-react

## 0.0.5-next.0

### Patch Changes

- Updated dependencies [[`d548d95`](https://github.com/ensdomains/ensjs/commit/d548d9555741b6d9a99b1e2ec3c20eaca7a186f6)]:
- @ensdomains/ensjs@4.1.0-next.0

## 0.0.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ensdomains/ensjs-react",
"version": "0.0.5-next.0",
"version": "0.0.4",
"description": "ENS javascript library for contract interaction",
"type": "module",
"main": "./dist/cjs/index.js",
Expand Down

0 comments on commit d5615f5

Please sign in to comment.