Skip to content

Commit

Permalink
chore(ci): configure release please action (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra authored Jul 14, 2024
1 parent a2b668d commit 22cacda
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 6 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml → .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ci
name: e2e
on:
pull_request:
branches:
Expand All @@ -9,7 +9,7 @@ concurrency:
cancel-in-progress: true

jobs:
test:
tests:
strategy:
matrix:
os:
Expand All @@ -34,7 +34,5 @@ jobs:
run: npm ci
- name: Link module
run: npm link grunt-nw-builder
- name: Check for linting error
run: npm run lint
- name: Run tests
run: npm run test
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml → .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: cd
name: npm
on:
push:
branches:
Expand All @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v4.1.7
- uses: actions/setup-node@v4.0.2
with:
node-version: "20.5.1"
node-version: 22
cache: "npm"
- run: corepack enable
- run: npm ci
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/rel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: rel

on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-22.04
steps:
- name: Release Please
uses: googleapis/release-please-action@v4.1.3
with:
token: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "4.7.7"
}
14 changes: 14 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"packages": {
".": {
"last-release-sha": "a2b668d5dec2baaecc02d33ef7e1632fd348a7ae",
"include-component-in-tag": false,
"release-type": "node",
"changelog-sections": [
{ "type": "feat", "section": "Features", "hidden": false },
{ "type": "fix", "section": "Bug Fixes", "hidden": false },
{ "type": "chore", "section": "Chores", "hidden": false }
]
}
}
}

0 comments on commit 22cacda

Please sign in to comment.