Skip to content

Commit a2f2d5f

Browse files
committed
chore: align release with chainsafe
1 parent 179a67e commit a2f2d5f

6 files changed

Lines changed: 9588 additions & 16 deletions

File tree

.github/dependabot.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ updates:
66
interval: daily
77
time: "10:00"
88
open-pull-requests-limit: 10
9+
commit-message:
10+
prefix: "chore: "
11+
prefix-development: "dev: "

.github/workflows/automerge.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.github/workflows/js-test-and-release.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,18 +135,31 @@ jobs:
135135
runs-on: ubuntu-latest
136136
if: github.event_name == 'push' && github.ref == 'refs/heads/master' # with #262 - 'refs/heads/${{{ github.default_branch }}}'
137137
steps:
138-
- uses: actions/checkout@v2
138+
- uses: google-github-actions/release-please-action@v3
139+
id: release
140+
with:
141+
release-type: node
142+
package-name: release-please-action
143+
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false}]'
144+
145+
- uses: actions/checkout@v3
146+
if: ${{ steps.release.outputs.release_created }}
139147
with:
140148
fetch-depth: 0
141-
- uses: actions/setup-node@v2
149+
150+
- uses: actions/setup-node@v3
151+
if: ${{ steps.release.outputs.release_created }}
142152
with:
143-
node-version: lts/*
153+
node-version: 16
154+
registry-url: 'https://registry.npmjs.org'
155+
144156
- uses: ipfs/aegir/actions/cache-node-modules@master
145-
- uses: ipfs/aegir/actions/docker-login@master
146-
with:
147-
docker-token: ${{ secrets.DOCKER_TOKEN }}
148-
docker-username: ${{ secrets.DOCKER_USERNAME }}
149-
- run: npm run --if-present release
157+
if: ${{ steps.release.outputs.release_created }}
158+
159+
- run: npm publish
160+
if: ${{ steps.release.outputs.release_created }}
150161
env:
151162
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
152163
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
164+
165+

.github/workflows/semantic-pr.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "Semantic PR"
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
jobs:
11+
main:
12+
name: Validate PR title
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: amannn/action-semantic-pull-request@v4
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
with:
19+
requireScope: false
20+
validateSingleCommit: true
21+
validateSingleCommitMatchesPrTitle: false
22+
types: |
23+
fix
24+
feat
25+
chore

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"test:browser": "npm run test -- -t browser -t webworker",
6363
"test:electron-main": "npm run test -- -t electron-main",
6464
"docs": "aegir docs",
65+
"prepublish": "npm run build",
6566
"proto:gen": "pbjs -t static-module -w es6 -r libp2p-noise -o ./src/proto/payload.js ./src/proto/payload.proto && pbts -o ./src/proto/payload.d.ts ./src/proto/payload.js"
6667
},
6768
"dependencies": {

0 commit comments

Comments
 (0)