Skip to content

Commit a389ae8

Browse files
committed
feat(autodeploy): Added autodeploy action
1 parent 3e9460d commit a389ae8

File tree

11 files changed

+2259
-709
lines changed

11 files changed

+2259
-709
lines changed

.github/workflows/release.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
id-token: write
10+
11+
name: release
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: google-github-actions/release-please-action@v3
17+
id: release
18+
with:
19+
release-type: node
20+
package-name: ${{vars.NPM_MODULE_NAME}}
21+
pull-request-title-pattern: 'chore${scope}: release ${version} [skip-ci]'
22+
# The logic below handles the npm publication:
23+
- uses: actions/checkout@v4
24+
# these if statements ensure that a publication only occurs when
25+
# a new release is created:
26+
if: ${{ steps.release.outputs.release_created }}
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version: 20
30+
registry-url: 'https://registry.npmjs.org'
31+
if: ${{ steps.release.outputs.release_created }}
32+
- run: npm ci
33+
if: ${{ steps.release.outputs.release_created }}
34+
- run: npm publish --provenance --access public
35+
env:
36+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
37+
if: ${{ steps.release.outputs.release_created }}

.github/workflows/stale.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 'Close stale issues and PRs'
2+
on:
3+
schedule:
4+
- cron: '30 1 * * *'
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v8
11+
with:
12+
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
13+
stale-pr-message: 'This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.'
14+
close-issue-message: 'This issue was closed because it has been stalled for 15 days with no activity.'
15+
close-pr-message: 'This PR was closed because it has been stalled for 20 days with no activity.'
16+
days-before-issue-stale: 30
17+
days-before-pr-stale: 45
18+
days-before-issue-close: 15
19+
days-before-pr-close: 20
20+
stale-issue-label: 'no-issue-activity'
21+
exempt-issue-labels: 'pending,work-in-progress'
22+
stale-pr-label: 'no-pr-activity'
23+
exempt-pr-labels: 'awaiting-approval,work-in-progress'
24+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Run tests
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
strategy:
10+
matrix:
11+
node: [20.x]
12+
os: [ubuntu-latest]
13+
runs-on: ${{ matrix.os }}
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Use Node.js ${{ matrix.node }}
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: ${{ matrix.node }}
20+
- run: npm install
21+
- run: npm test

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
node_modules
2-
.DS_Store
3-
package-lock.json
4-
2+
.DS_Store

.ncurc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
upgrade: true,
3+
reject: ['eslint', 'grunt-eslint']
4+
};

0 commit comments

Comments
 (0)