Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
brianzinn authored Oct 7, 2020
1 parent a815e11 commit ac4607a
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: make_release

on:
workflow_dispatch:
inputs:
npmVersion:
description: 'NPM Version (<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease | ...)'
required: true
default: 'patch'
# push:
# branches: [ master ]

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
scope: brianzinn

- name: Configure git
run: |
git config user.email "[email protected]"
git config user.name "Brian Zinn"
- name: install-build
run: |
yarn install
yarn build
- run: echo "version -- ${{ github.event.inputs.npmVersion }}"
- run: npm version patch -m "release %s :package:"
- run: git push && git push --tags
- name: publish-npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit ac4607a

Please sign in to comment.