Skip to content

Merge pull request #35 from butlerx/dependabot/npm_and_yarn/babel/tra… #38

Merge pull request #35 from butlerx/dependabot/npm_and_yarn/babel/tra…

Merge pull request #35 from butlerx/dependabot/npm_and_yarn/babel/tra… #38

Workflow file for this run

---
name: Publish
on:
push:
branches:
- master
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: yarn
- run: yarn build
- run: yarn test
env:
CI: true
CLIENT_EMAIL: ${{ secrets.CLIENT_EMAIL }}
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
PRIVATE_KEY_ID: ${{ secrets.PRIVATE_KEY_ID }}
PROJECT_ID: ${{ secrets.PROJECT_ID }}
SPREADSHEET_ID: "1UPOEWfYO_BpK_upTzsUyzsjO-buodyIYSuVvFhb_xc4"
- name: Publish if version has been updated
uses: pascalgn/[email protected]
with:
tag_name: "v%s"
tag_message: "v%s"
create_tag: "true"
commit_pattern: "^Release (\\S+)"
workspace: "."
publish_command: "yarn"
publish_args: "--non-interactive"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}