-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: automate version bumping and type release process
- Loading branch information
Showing
5 changed files
with
1,720 additions
and
206 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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
name: Publish Types | ||
|
||
# If changes are made to the types package.json, | ||
# If changes are made to the types/src/** files | ||
# Issue a new release to npm for the types package. | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "types/package.json" | ||
- 'types/src/**' | ||
|
||
jobs: | ||
build: | ||
|
@@ -21,16 +21,14 @@ jobs: | |
token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18.x" | ||
registry-url: "https://registry.npmjs.org" | ||
node-version: '18.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Install npm dependencies | ||
run: cd types && yarn install | ||
- name: Configure Github Actions user | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Github Actions" | ||
- name: Run a build | ||
run: cd types && yarn build | ||
- name: Publish the package | ||
run: cd types && yarn publish-types | ||
env: | ||
|
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import type { Config } from 'release-it' | ||
|
||
export default { | ||
hooks: { | ||
'after:bump': 'yarn run build', | ||
}, | ||
git: { | ||
commitMessage: 'Release `tangle-substrate-types` v${version}', | ||
tag: false, | ||
push: false, | ||
}, | ||
github: { | ||
release: false, | ||
}, | ||
npm: { | ||
publish: true, | ||
}, | ||
} satisfies Config |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.