Skip to content

feat(stack): tune action #3

feat(stack): tune action

feat(stack): tune action #3

name: Publish stack-context
on:
workflow_dispatch:
inputs:
version:
description: 'Введите версию x.x.x'
required: true
push:
branches:
- feat/stack_global_context
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check permissions
if: ${{ contains(fromJSON('["reme3d2y","Valeri8888","SiebenSieben","fulcanellee"]'), github.actor) == false }}
uses: actions/github-script@v6
with:
script: |
core.setFailed("you don't have permission to run this workflow!");
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: yarn --pure-lockfile
- name: Build app
run: |
cd ./packages/stack-context
yarn build
- name: Set version
if: success()
run: |
cd ./packages/stack-context
git config user.name core-ds-bot
git config user.email [email protected]
yarn --new-version version 1.15.0
git push
- name: Publish
if: success()
run: |
cd ./packages/stack-context
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}