Publish Workflow

This commit is contained in:
JamesIves 2020-02-22 09:14:37 -05:00
parent c4852eaf0f
commit a44b89c1b4
2 changed files with 24 additions and 1 deletions

23
.github/workflows/publish.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: Publish to NPM
on:
release:
types: [created]
jobs:
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: dev
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm version patch
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

View File

@ -1,7 +1,7 @@
{
"name": "github-pages-deploy-action",
"description": "GitHub action for building a project and deploying it to GitHub pages.",
"version": "3.1.2",
"version": "3.2.1",
"main": "lib/main.js",
"scripts": {
"build": "tsc",