Skip to content

Commit

Permalink
chore: add semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
lvauvillier committed Jul 5, 2020
1 parent 486ee97 commit 5ac56ef
Show file tree
Hide file tree
Showing 4 changed files with 3,968 additions and 80 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/publish.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release npm package

on:
push:
branches:
- master

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- run: yarn install --frozen-lockfile
- run: yarn build
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nexus-plugin-shield",
"version": "0.1.5",
"version": "0.0.0-development",
"license": "MIT",
"main": "dist/index.js",
"module": "dist/nexus-plugin-shield.esm.js",
Expand Down Expand Up @@ -29,9 +29,8 @@
],
"scripts": {
"dev": "tsc --watch",
"build:ts": "tsc",
"build": "npm run -s build:ts",
"prepack": "npm run -s build"
"build": "tsc -d",
"release": "semantic-release"
},
"prettier": {
"semi": false,
Expand All @@ -45,6 +44,7 @@
"devDependencies": {
"@types/object-hash": "^1.3.1",
"nexus": "^0.25.0",
"semantic-release": "^17.1.1",
"typescript": "^3.8.3"
}
}
Loading

0 comments on commit 5ac56ef

Please sign in to comment.