Skip to content

add base-plugin to dependencies and bump version #92

add base-plugin to dependencies and bump version

add base-plugin to dependencies and bump version #92

Workflow file for this run

name: release
on:
push:
branches:
- main
tags:
- 'v*.*.*'
pull_request:
types:
- labeled
jobs:
release:
if: github.event.action != 'labeled'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Post bumpr status comment
uses: haya14busa/action-bumpr@v1
# Get tag name.
- id: tag
uses: haya14busa/action-cond@v1
with:
cond: "${{ startsWith(github.ref, 'refs/tags/') }}"
if_true: ${{ github.ref }}
if_false: ${{ steps.bumpr.outputs.next_version }}
- name: Release
uses: justincy/[email protected]
id: release
- uses: actions/setup-node@v1
if: steps.release.outputs.released == 'true'
with:
registry-url: 'https://registry.npmjs.org'
node-version: '16.x'
- name: Publish
if: steps.release.outputs.released == 'true'
run: echo "//registry.npmjs.org/:_authToken=${{secrets.npm_token}}" > .npmrc && npm ci && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
release-check:
if: github.event.action == 'labeled'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Post bumpr status comment
uses: haya14busa/action-bumpr@v1