Skip to content

Fix identation

Fix identation #115

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
release:
types: [released]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
runs-on: ubuntu-latest
steps:
- name: Branch name
if: startsWith(github.ref, 'refs/tags/')
id: branch_name
run: echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v1
with:
node-version: '12.x'
registry-url: 'https://registry.npmjs.org'
- name: Bump version number locally on tag
if: startsWith(github.ref, 'refs/tags/')
run: npm version --no-git-tag-version $SOURCE_TAG
env:
SOURCE_TAG: ${{ steps.branch_name.outputs.SOURCE_TAG }}
- run: npm ci
- run: npm run build
- name: Publish to npm on release
if: startsWith(github.ref, 'refs/tags/')
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}