Skip to content

1.0.3

1.0.3 #4

Workflow file for this run

name: Publish
on:
release:
types: [created]
jobs:
publish:
runs-on: ${{ vars.LINUX }}
timeout-minutes: 10
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ vars.NODE_VERSION }}
registry-url: https://registry.npmjs.org/
- name: Version
run: |
npm --no-git-tag-version --allow-same-version version `git describe --abbrev=0 --tags`
- name: Build
run: npm i && npm run build
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Notify on failure
if: ${{ failure() }}
uses: ./.github/actions/fail-notification
with:
webhook-url: ${{ secrets.TEAMS_BUILDS_WEBHOOK }}