Skip to content

Commit

Permalink
chore: custom release
Browse files Browse the repository at this point in the history
  • Loading branch information
hardfist committed May 29, 2023
1 parent 053883f commit e48bc20
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 40 deletions.
8 changes: 0 additions & 8 deletions .changeset/README.md

This file was deleted.

17 changes: 0 additions & 17 deletions .changeset/config.json

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/twelve-dots-repair.md

This file was deleted.

16 changes: 7 additions & 9 deletions .github/workflows/release-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ on:
required: true
default: "latest"
options:
- canary
- alpha
- beta
- latest
- major
- minor
- patch
- snapshot
schedule:
# 08:00 AM Beijing Time on every Tuesday
- cron: "0 0 * * 2"
Expand All @@ -32,12 +32,10 @@ jobs:
uses: ./.github/actions/pnpm-cache

- name: Create Release Pull Request
uses: web-infra-dev/actions@v2
uses: hardfist/rspack-action@rspack
with:
version: ${{ inputs.version || 'latest' }}
versionNumber: "auto"
type: "pull request"
tools: "changeset"
version: node ./x version ${{inputs.version || 'canary'}}
createGithubReleases: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
1 change: 0 additions & 1 deletion scripts/release/version.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export async function version_handler(version) {
`version must be one of ${allowedVersion}, but you passed ${version}`
);
}
await import("../check_changeset.js");
const root = process.cwd();

const lastVersion = await getLastVersion(root);
Expand Down

0 comments on commit e48bc20

Please sign in to comment.