-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: cjs interop require default pita (#1722)
* fix: cjs interop require default pita * chore: update CI / CD workflow
- Loading branch information
Showing
5 changed files
with
34 additions
and
14 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -16,14 +16,20 @@ on: | |
- minor | ||
- major | ||
- prerelease | ||
- from-package | ||
- from-git | ||
prerelease: | ||
type: choice | ||
required: false | ||
description: Pre-release | ||
options: | ||
- | ||
- canary | ||
- beta | ||
dryrun: | ||
description: 'Dry-run' | ||
type: boolean | ||
|
||
run-name: Deploy ${{ inputs.version }} ${{ inputs.dryrun && '--dry-run' || '' }} ${{ inputs.prerelease && format('--prerelease {0}', inputs.prerelease) || '' }} | ||
|
||
jobs: | ||
deploy: | ||
|
@@ -38,11 +44,12 @@ jobs: | |
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Fetch all history for all tags and branches | ||
- uses: actions/setup-node@v3 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
# this line is required for the setup-node action to be able to run the npm publish below. | ||
registry-url: 'https://registry.npmjs.org' | ||
- uses: fregante/setup-git-user@v1 | ||
|
@@ -53,4 +60,9 @@ jobs: | |
- run: npm run build:demo | ||
- run: npm run build:dist | ||
- run: npm run build:standalone | ||
- run: npx --yes [email protected] release ${{ inputs.version }} --prerelease "${{ inputs.prerelease }}" --provenance --changelog --github-release | ||
- run: npx --yes [email protected] release ${{ inputs.version }} ${{ inputs.dryrun && '--dry-run' || '' }} ${{ inputs.prerelease && format('--prerelease {0}', inputs.prerelease) || '' }} --provenance --changelog --github-release --verbose | ||
- name: Get NPM version | ||
id: npm-version | ||
uses: martinbeentjes/[email protected] | ||
- name: Released ${{ steps.npm-version.outputs.current-version}} ✨ | ||
run: echo ${{ steps.npm-version.outputs.current-version}} |
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