Skip to content

v5.0.17 - extra prop #193

v5.0.17 - extra prop

v5.0.17 - extra prop #193

Workflow file for this run

name: oacore/design publish
on:
release:
types: [published]
env:
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
publish-gpr:
runs-on: ubuntu-latest
steps:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
env:
NPM_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Git Checkout
uses: actions/checkout@v2
with:
ref: master
- name: Lint & Build
uses: actions/setup-node@v1.4.4
with:
node-version: '16.x'
registry-url: https://npm.pkg.github.com/
scope: '@oacore/design'
- run: |
npm ci
npm run lint
npm run build
- name: Bump version ${{ steps.get_version.outputs.VERSION }}
run: npm version ${{ steps.get_version.outputs.VERSION }} --git-tag-version=false
- name: Publish package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3.5.0
with:
commit-message: Bump version ${{ steps.get_version.outputs.VERSION }}
title: Bump version ${{ steps.get_version.outputs.VERSION }}
body: Bump package.json version
branch: bump-version-${{ steps.get_version.outputs.VERSION }}