forked from ChainSafe/metamask-snap-polkadot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
178 additions
and
37 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "yarn" | ||
allow: | ||
# Allow both direct and indirect updates for all packages | ||
- dependency-type: "production" | ||
commit-message: | ||
prefix: "chore: " |
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,49 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
maybe-release: | ||
name: release | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | ||
steps: | ||
|
||
# you should probably do this after your regular CI checks passes | ||
- uses: google-github-actions/release-please-action@v3 # it will analyze commits and create PR with new version and updated CHANGELOG:md file. On merging it will create github release page with changelog | ||
id: release | ||
with: | ||
command: manifest | ||
token: ${{secrets.GITHUB_TOKEN}} | ||
default-branch: master | ||
release-type: node | ||
monorepo-tags: true | ||
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false}]' | ||
|
||
- uses: actions/checkout@v3 | ||
# these if statements ensure that a publication only occurs when | ||
# a new release is created: | ||
if: ${{ steps.release.outputs.releases_created }} | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: 'yarn' | ||
node-version: 16 | ||
registry-url: 'https://registry.npmjs.org' | ||
if: ${{ steps.release.outputs.releases_created }} | ||
|
||
- run: yarn install --immutable | ||
if: ${{ steps.release.outputs.releases_created }} | ||
|
||
- run: yarn build | ||
if: ${{ steps.release.outputs.releases_created }} | ||
|
||
- env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
if: ${{ steps.release.outputs.releases_created }} | ||
run: | | ||
echo npmAuthToken: "$NODE_AUTH_TOKEN" >> ./.yarnrc.yml | ||
- run: yarn workspaces foreach -v --exclude root --no-private npm publish --tolerate-republish --access public | ||
if: ${{ steps.release.outputs.releases_created }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: "Semantic PR" | ||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
jobs: | ||
main: | ||
name: Validate PR title | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: amannn/action-semantic-pull-request@v4 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
types: | | ||
fix | ||
feat | ||
chore | ||
validateSingleCommit: true #single commit can ovveride squash merge commit message |
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,5 @@ | ||
{ | ||
"packages/snap": "0.3.0", | ||
"packages/types": "0.3.0", | ||
"packages/adapter": "0.3.1" | ||
} |
Empty file.
Empty file.
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
Empty file.
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,39 @@ | ||
{ | ||
"plugins": [], | ||
"packages": { | ||
"packages/adapter": { | ||
"releaseType": "node", | ||
"draft": false, | ||
"prerelease": false, | ||
"bumpMinorPreMajor": false, | ||
"bumpPatchForMinorPreMajor": false, | ||
"changelogPath": "CHANGELOG.md", | ||
"versioning": "default" | ||
}, | ||
"packages/types": { | ||
"releaseType": "node", | ||
"draft": false, | ||
"prerelease": false, | ||
"bumpMinorPreMajor": false, | ||
"bumpPatchForMinorPreMajor": false, | ||
"changelogPath": "CHANGELOG.md", | ||
"versioning": "default" | ||
}, | ||
"packages/snap": { | ||
"releaseType": "node", | ||
"draft": false, | ||
"prerelease": false, | ||
"bumpMinorPreMajor": false, | ||
"bumpPatchForMinorPreMajor": false, | ||
"changelogPath": "CHANGELOG.md", | ||
"versioning": "default", | ||
"extra-files": [ | ||
{ | ||
"type": "json", | ||
"path": "snap.manifest.json", | ||
"jsonpath": "$.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