-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revert to before changeset pre enter command
- Loading branch information
1 parent
00e52b0
commit 78211a9
Showing
8 changed files
with
45 additions
and
68 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,61 @@ | ||
name: Release | ||
name: Prerelease | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
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: 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: Install dependencies | ||
run: pnpm install | ||
|
||
- 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: Build Packages | ||
run: pnpm -r build | ||
|
||
- 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: Create Release Pull Request or Publish | ||
id: changesets | ||
uses: changesets/action@v1 | ||
with: | ||
# Note: pnpm install after versioning is necessary to refresh lockfile | ||
|
||
- name: Push changes | ||
run: git push | ||
version: pnpm chgset:version:prerelease | ||
publish: pnpm release | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters