Skip to content

Commit 36a0674

Browse files
author
Allan Pope
authored
Merge pull request #7 from allanpope/setup-npm-release
feat(release): setup publish to npm
2 parents 7612d45 + 7017919 commit 36a0674

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/release.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
- uses: actions/setup-node@v1
14+
with:
15+
node-version: 12
16+
registry-url: https://registry.npmjs.org
17+
- run: npm install
18+
- run: npm run build
19+
- run: npx semantic-release
20+
env:
21+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
22+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
23+
GH_TOKEN: ${{ secrets.GH_TOKEN }}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gatsby-source-nhl",
3-
"version": "1.0.0",
3+
"version": "0.0.0",
44
"description": "A Gatsby source plugin to load resources from the NHL API.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)