File tree Expand file tree Collapse file tree 6 files changed +142
-0
lines changed Expand file tree Collapse file tree 6 files changed +142
-0
lines changed Original file line number Diff line number Diff line change 1+ feature : [ 'feature-*', 'feat-*' ]
2+ bugfix : [ 'fix-*', 'bugfix-*' ]
3+ chore : [ 'chore-*' ]
4+ documentation : [ 'doc-*', 'docs-*' ]
Original file line number Diff line number Diff line change 1+ name-template : ' v$RESOLVED_VERSION 🌈'
2+ tag-template : ' v$RESOLVED_VERSION'
3+ categories :
4+ - title : ' 🚀 Features'
5+ labels :
6+ - ' feature'
7+ - ' enhancement'
8+ - title : ' 🐛 Bug Fixes'
9+ labels :
10+ - ' fix'
11+ - ' bugfix'
12+ - ' bug'
13+ - title : ' 🧰 Maintenance'
14+ labels :
15+ - ' chore'
16+ - ' documentation'
17+ change-template : ' - $TITLE @$AUTHOR (#$NUMBER)'
18+ exclude-labels :
19+ - ' skip-changelog'
20+ version-resolver :
21+ major :
22+ labels :
23+ - ' major'
24+ minor :
25+ labels :
26+ - ' minor'
27+ patch :
28+ labels :
29+ - ' patch'
30+ default : patch
31+ template : |
32+ ## Changes
33+
34+ $CHANGES
Original file line number Diff line number Diff line change 1+ name : " Pull Request Labeler"
2+
3+ on :
4+ push :
5+ branches : " **"
6+
7+ jobs :
8+ ci :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v3
12+ - uses : actions/setup-node@v3
13+ with :
14+ node-version : 18
15+ - run : npm ci
16+ - run : npm test -- --coverage
Original file line number Diff line number Diff line change 1+ # This workflow will triage pull requests and apply a label based on the
2+ # paths that are modified in the pull request.
3+ #
4+ # To use this workflow, you will need to set up a .github/labeler.yml
5+ # file with configuration. For more information, see:
6+ # https://github.com/actions/labeler
7+
8+ name : " Pull Request Labeler"
9+ on : [pull_request_target]
10+
11+ jobs :
12+ labeler :
13+ runs-on : ubuntu-latest
14+ permissions :
15+ contents : read
16+ pull-requests : write
17+ steps :
18+ - uses : actions/labeler@v4
19+ with :
20+ repo-token : " ${{ secrets.GITHUB_TOKEN }}"
Original file line number Diff line number Diff line change 1+ # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+ # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3+
4+ name : Node.js Package
5+
6+ on :
7+ release :
8+ types : [created]
9+
10+ jobs :
11+ build :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v3
15+ - uses : actions/setup-node@v3
16+ with :
17+ node-version : 18
18+ - run : npm ci
19+ - run : npm test
20+
21+ publish-npm :
22+ needs : build
23+ runs-on : ubuntu-latest
24+ steps :
25+ - uses : actions/checkout@v3
26+ - uses : actions/setup-node@v3
27+ with :
28+ node-version : 18
29+ registry-url : https://registry.npmjs.org/
30+ - run : npm ci
31+ - run : npm run build
32+ - run : npm publish
33+ env :
34+ NODE_AUTH_TOKEN : ${{secrets.npm_token}}
Original file line number Diff line number Diff line change 1+ name : Release Drafter
2+
3+ on :
4+ push :
5+ # branches to consider in the event; optional, defaults to all
6+ branches :
7+ - main
8+
9+ permissions :
10+ contents : read
11+
12+ jobs :
13+ update_release_draft :
14+ permissions :
15+ # write permission is required to create a github release
16+ contents : write
17+ # write permission is required for autolabeler
18+ # otherwise, read permission is required at least
19+ pull-requests : write
20+ runs-on : ubuntu-latest
21+ steps :
22+ # (Optional) GitHub Enterprise requires GHE_HOST variable set
23+ # - name: Set GHE_HOST
24+ # run: |
25+ # echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV
26+
27+ # Drafts your next Release notes as Pull Requests are merged into "master"
28+ - uses : release-drafter/release-drafter@v5
29+ # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
30+ # with:
31+ # config-name: my-config.yml
32+ # disable-autolabeler: true
33+ env :
34+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments