Skip to content

Commit

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

on:
workflow_dispatch:
inputs:
preId:
description: 'Pre-release identifier (alpha | beta | rc)'
required: true
default: 'beta'
# 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 "prerelease identifier -- ${{ github.event.inputs.preId }}"
- run: npm version prerelease --preid=${{ github.event.inputs.preId }} -m "release %s :package:"
- run: git push && git push --tags
- name: publish-npm
run: npm publish --tag ${{ github.event.inputs.preId }} --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit a0eefa3

Please sign in to comment.