File tree 9 files changed +3085
-3067
lines changed 9 files changed +3085
-3067
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @generates/commit-action " : patch
3
+ ---
4
+
5
+ Publishing as package
Original file line number Diff line number Diff line change 8
8
build :
9
9
runs-on : ubuntu-latest
10
10
container :
11
- image : ianwalter/pnpm:v1.1.0
11
+ image : node:15-buster
12
12
timeout-minutes : 3
13
13
steps :
14
14
- name : Checkout
15
15
uses : actions/checkout@v2
16
16
- name : Install
17
- run : pnpm i
17
+ run : yarn
18
18
- name : Lint
19
- run : pnpm lint -- --fix
19
+ run : yarn lint --fix
20
20
- name : Commit Lint Fixes
21
21
uses : ./
22
22
with :
Original file line number Diff line number Diff line change 7
7
release :
8
8
runs-on : ubuntu-latest
9
9
container :
10
- image : ianwalter/pnpm:v1.1.0
10
+ image : node:15-buster
11
11
timeout-minutes : 10
12
12
steps :
13
13
- name : Checkout
@@ -17,17 +17,11 @@ jobs:
17
17
# generate changelogs with the correct commits.
18
18
fetch-depth : 0
19
19
- name : Install
20
- run : pnpm i
20
+ run : yarn
21
21
- name : Changesets
22
- uses : changesets/action@master
23
- with :
24
- publish : npx changeset publish
22
+ uses : changesets/action@b3300fad33b6ab794313da28d27424c0e2f78991
25
23
env :
26
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
- - name : Update Lockfile
28
- run : pnpm i
29
- - name : Commit Changes
30
- uses : ./
24
+ GITHUB_TOKEN : ${{ secrets.GH_PAT }}
25
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
31
26
with :
32
- token : ${{ secrets.GH_PAT }}
33
-
27
+ publish : npx changeset publish
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- FROM ianwalter/pnpm:v1.1.0
1
+ FROM node:15-buster
2
2
3
3
RUN mkdir -p /opt/commit-action
4
4
5
- COPY pnpm-lock.yaml /opt/commit-action
5
+ COPY yarn.lock /opt/commit-action
6
6
COPY package.json /opt/commit-action
7
- RUN cd /opt/commit-action && pnpm i && cd $HOME
7
+ RUN cd /opt/commit-action && yarn && cd $HOME
8
8
9
9
COPY index.js /opt/commit-action
10
10
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env node
2
+
1
3
const core = require ( '@actions/core' )
2
4
const github = require ( '@actions/github' )
3
5
const { createLogger } = require ( '@generates/logger' )
Original file line number Diff line number Diff line change 1
1
{
2
- "private" : true ,
3
- "name" : " commit-action" ,
2
+ "name" : " @generates/commit-action" ,
4
3
"version" : " 1.0.1" ,
5
4
"description" : " Automate git commits with GitHub Actions" ,
5
+ "main" : " index.js" ,
6
+ "bin" : {
7
+ "commit" : " index.js"
8
+ },
6
9
"scripts" : {
7
10
"lint" : " eslint ."
8
11
},
14
17
"bugs" : {
15
18
"url" : " https://github.com/generates/commit-action/issues"
16
19
},
20
+ "funding" : {
21
+ "type" : " github" ,
22
+ "url" : " https://github.com/sponsors/ianwalter"
23
+ },
24
+ "publishConfig" : {
25
+ "access" : " public"
26
+ },
17
27
"homepage" : " https://github.com/generates/commit-action#readme" ,
18
28
"dependencies" : {
19
29
"@actions/core" : " ^1.2.6" ,
You can’t perform that action at this time.
0 commit comments