Skip to content

Commit 20729fd

Browse files
committed
feat: 🎸 github actions addition
This commit will automate package publish
1 parent 98d082d commit 20729fd

File tree

3 files changed

+30
-4
lines changed

3 files changed

+30
-4
lines changed

.github/workflows/npm-publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: npm-publish
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
npm-publish:
8+
name: npm-publish
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@master
13+
- name: Set up Node.js
14+
uses: actions/setup-node@master
15+
with:
16+
node-version: 10.0.0
17+
- name: Publish if version has been updated
18+
uses: pascalgn/npm-publish-action@06e0830ea83eea10ed4a62654eeaedafb8bf50fc
19+
with:
20+
tag_name: "v%s"
21+
tag_message: "v%s"
22+
commit_pattern: "^Release (\\S+)"
23+
workspace: "."
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fastify-typescript-generator",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Generate new Fastify applications similar to express-generate which but sets it up to use TypeScript instead",
55
"preferGlobal": true,
66
"scripts": {
@@ -62,9 +62,9 @@
6262
"license": "MIT",
6363
"private": false,
6464
"bugs": {
65-
"url": "https://github.com/open-devs/fastify-generator-typescript/issues"
65+
"url": "https://github.com/open-devs/fastify-typescript-generator/issues"
6666
},
67-
"homepage": "https://github.com/open-devs/fastify-generator-typescript#readme",
67+
"homepage": "https://github.com/open-devs/fastify-typescript-generator#readme",
6868
"dependencies": {
6969
"cfonts": "^2.8.6",
7070
"ncp": "^2.0.0",

0 commit comments

Comments
 (0)