Skip to content

Publish

Publish #33

Workflow file for this run

name: 'Publish'
on:
workflow_dispatch:
inputs:
version:
description: 'version (without v prefix)'
required: true
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.DEVTOOLS_GITHUB_TOKEN }}
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
always-auth: true
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: yarn install --frozen-lockfile --ignore-scripts
- name: Set Git credentials
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
- run: yarn version --new-version ${{ github.event.inputs.version }} --no-commit-hooks
- name: Pushing changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.DEVTOOLS_GITHUB_TOKEN }}
branch: ${{ github.ref }}
- name: Publishing release
run: yarn publish --access public --non-interactive
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_PUBLISH_TOKEN }}