Skip to content

v2.9.1

v2.9.1 #10

Workflow file for this run

name: release
on:
release: # Docs: <https://git.io/JeBz1#release-event-release>
types: [published]
jobs:
npmjs:
name: Publish JS package
runs-on: ubuntu-20.04
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup NodeJS
uses: actions/setup-node@v1 # Action page: <https://github.com/actions/setup-node>
with:
node-version: 12
registry-url: 'https://registry.npmjs.org'
scope: '@avto-dev'
- name: Generate builder values
id: values
run: echo "::set-output name=version::${GITHUB_REF##*/v}"
- name: Install dependencies
run: yarn install
- name: Set package version
run: yarn version --no-git-tag-version --no-commit-hooks --new-version "${{ steps.values.outputs.version }}"
- name: Publish package
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn publish --access public --non-interactive