Skip to content

Commit

Permalink
chore: remove the pre* defined scripts (#493)
Browse files Browse the repository at this point in the history
* Add the missing package.json script

* Remove the prerelease script and commands as we don't want them to be run during stable release
  • Loading branch information
collins-w authored Jul 23, 2024
1 parent 4aaf7b8 commit d23729d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ jobs:
uses: changesets/action@aba318e9165b45b7948c60273e0b72fce0a64eb9 # v1.4.7
with:
setupGitUser: false
version: pnpm ci:prerelease
version: pnpm ci:snapshot
title: "ci: Update the version packages"
publish: pnpm prerelease
publish: pnpm snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/version-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
uses: changesets/action@aba318e9165b45b7948c60273e0b72fce0a64eb9 # v1.4.7
with:
setupGitUser: false
version: pnpm ci:prerelease
version: pnpm ci:snapshot
title: "ci: update the version packages"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"nx-build-test-skip-cache": "pnpm run build-test --skip-nx-cache",
"nx-test-skip-cache": "pnpm run test --skip-nx-cache",
"ci:version": "pnpm changeset version",
"ci:prerelease": "pnpm changeset version --snapshot rc-snapshot",
"ci:snapshot": "pnpm changeset version --snapshot rc-snapshot",
"sort:networks": "node hack/sortNetworks.js && prettier -u -w packages/base/src/utils/network*.ts",
"build": "nx run-many -t build --parallel=1",
"build-test": "nx run-many -t style,build,test --projects=@openzeppelin/defender-base-client,* --parallel=false",
Expand All @@ -48,7 +48,7 @@
"style": "pnpm lint:fix",
"skip-lib-ignore": "./hack/skip-lib-ignore.sh",
"release": "node ./scripts/release.js",
"prerelease": "node ./scripts/prerelease.js",
"snapshot": "node ./scripts/snapshot.js",
"install-pnpm": "npm install -g pnpm"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/prerelease.js → scripts/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ process.chdir(path.join(__dirname, '..'));
throw new Error(`git ls-remote exited with ${exitCode}:\n${stderr}`);
}

await exec('changeset', ['publish', '--tag', 'rc-snapshot']);
await exec('changeset', ['publish', '--no-git-tag', '--tag', 'rc-snapshot']);
})();

0 comments on commit d23729d

Please sign in to comment.