Skip to content

Commit 603c989

Browse files
author
Ian Walter
committed
preparing to publish as package
1 parent 701bd9c commit 603c989

File tree

9 files changed

+3085
-3067
lines changed

9 files changed

+3085
-3067
lines changed

.changeset/tame-apes-destroy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@generates/commit-action": patch
3+
---
4+
5+
Publishing as package

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ jobs:
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:

.github/workflows/release.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
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

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
FROM ianwalter/pnpm:v1.1.0
1+
FROM node:15-buster
22

33
RUN mkdir -p /opt/commit-action
44

5-
COPY pnpm-lock.yaml /opt/commit-action
5+
COPY yarn.lock /opt/commit-action
66
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
88

99
COPY index.js /opt/commit-action
1010

index.js

100644100755
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env node
2+
13
const core = require('@actions/core')
24
const github = require('@actions/github')
35
const { createLogger } = require('@generates/logger')

package.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
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
},
@@ -14,6 +17,13 @@
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",

0 commit comments

Comments
 (0)