File tree Expand file tree Collapse file tree 9 files changed +3085
-3067
lines changed Expand file tree Collapse file tree 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 88 build :
99 runs-on : ubuntu-latest
1010 container :
11- image : ianwalter/pnpm:v1.1.0
11+ image : node:15-buster
1212 timeout-minutes : 3
1313 steps :
1414 - name : Checkout
1515 uses : actions/checkout@v2
1616 - name : Install
17- run : pnpm i
17+ run : yarn
1818 - name : Lint
19- run : pnpm lint -- --fix
19+ run : yarn lint --fix
2020 - name : Commit Lint Fixes
2121 uses : ./
2222 with :
Original file line number Diff line number Diff line change 77 release :
88 runs-on : ubuntu-latest
99 container :
10- image : ianwalter/pnpm:v1.1.0
10+ image : node:15-buster
1111 timeout-minutes : 10
1212 steps :
1313 - name : Checkout
@@ -17,17 +17,11 @@ jobs:
1717 # generate changelogs with the correct commits.
1818 fetch-depth : 0
1919 - name : Install
20- run : pnpm i
20+ run : yarn
2121 - name : Changesets
22- uses : changesets/action@master
23- with :
24- publish : npx changeset publish
22+ uses : changesets/action@b3300fad33b6ab794313da28d27424c0e2f78991
2523 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 }}
3126 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
22
33RUN mkdir -p /opt/commit-action
44
5- COPY pnpm-lock.yaml /opt/commit-action
5+ COPY yarn.lock /opt/commit-action
66COPY package.json /opt/commit-action
7- RUN cd /opt/commit-action && pnpm i && cd $HOME
7+ RUN cd /opt/commit-action && yarn && cd $HOME
88
99COPY index.js /opt/commit-action
1010
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env node
2+
13const core = require ( '@actions/core' )
24const github = require ( '@actions/github' )
35const { createLogger } = require ( '@generates/logger' )
Original file line number Diff line number Diff line change 11{
2- "private" : true ,
3- "name" : " commit-action" ,
2+ "name" : " @generates/commit-action" ,
43 "version" : " 1.0.1" ,
54 "description" : " Automate git commits with GitHub Actions" ,
5+ "main" : " index.js" ,
6+ "bin" : {
7+ "commit" : " index.js"
8+ },
69 "scripts" : {
710 "lint" : " eslint ."
811 },
1417 "bugs" : {
1518 "url" : " https://github.com/generates/commit-action/issues"
1619 },
20+ "funding" : {
21+ "type" : " github" ,
22+ "url" : " https://github.com/sponsors/ianwalter"
23+ },
24+ "publishConfig" : {
25+ "access" : " public"
26+ },
1727 "homepage" : " https://github.com/generates/commit-action#readme" ,
1828 "dependencies" : {
1929 "@actions/core" : " ^1.2.6" ,
You can’t perform that action at this time.
0 commit comments