Skip to content

Commit 49a21a9

Browse files
authored
Merge pull request #64 from bboure/feat/semantic-release
feat: add semantic-release
2 parents a17257c + 4f42a00 commit 49a21a9

File tree

4 files changed

+3339
-79
lines changed

4 files changed

+3339
-79
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Run Tests
1+
name: Release
22

33
on:
44
push:
5-
tags:
6-
- v*
5+
branches:
6+
- master
77

88
jobs:
99
publish:
@@ -13,7 +13,15 @@ jobs:
1313
- uses: actions/setup-node@v1
1414
with:
1515
node-version: 12
16-
- run: yarn install
17-
- uses: JS-DevTools/npm-publish@v1
18-
with:
19-
token: ${{ secrets.NPM_TOKEN }}
16+
- name: Install dependencies
17+
run: |
18+
yarn install --frozen-lockfile
19+
- name: Run lint
20+
run: yarn run lint
21+
- name: Run tests
22+
run: yarn run tests
23+
- name: Release
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
27+
run: npx semantic-release

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
This serverless plugin is a wrapper for [amplify-appsync-simulator](https://github.com/aws-amplify/amplify-cli/tree/master/packages/amplify-appsync-simulator) made for testing AppSync APIs built with [serverless-appsync-plugin](https://github.com/sid88in/serverless-appsync-plugin).
2-
3-
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
4-
1+
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) ![Release](https://github.com/bboure/serverless-appsync-simulator/workflows/Release/badge.svg) <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
52
[![All Contributors](https://img.shields.io/badge/all_contributors-10-orange.svg?style=flat-square)](#contributors-)
63

74
<!-- ALL-CONTRIBUTORS-BADGE:END -->
85

6+
This serverless plugin is a wrapper for [amplify-appsync-simulator](https://github.com/aws-amplify/amplify-cli/tree/master/packages/amplify-appsync-simulator) made for testing AppSync APIs built with [serverless-appsync-plugin](https://github.com/sid88in/serverless-appsync-plugin).
7+
98
# Requires
109

1110
- [serverless framework](https://github.com/serverless/serverless)

package.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,25 @@
3838
"@babel/core": "^7.12.3",
3939
"@babel/plugin-transform-modules-commonjs": "^7.12.1",
4040
"@babel/preset-env": "^7.12.1",
41+
"@semantic-release/git": "^9.0.0",
4142
"all-contributors-cli": "^6.19.0",
4243
"babel-eslint": "^10.1.0",
4344
"babel-plugin-inline-import": "^3.0.0",
4445
"eslint": "^7.13.0",
4546
"eslint-config-prettier": "^7.0.0",
4647
"eslint-plugin-prettier": "^3.2.0",
47-
"prettier": "^2.2.1"
48+
"prettier": "^2.2.1",
49+
"semantic-release": "^17.3.0"
50+
},
51+
"release": {
52+
"branch": "master",
53+
"plugins": [
54+
"@semantic-release/commit-analyzer",
55+
"@semantic-release/release-notes-generator",
56+
"@semantic-release/npm",
57+
"@semantic-release/git",
58+
"@semantic-release/github"
59+
]
4860
},
4961
"keywords": [
5062
"serverless",

0 commit comments

Comments
 (0)