Skip to content

feat: temp publish config #4

feat: temp publish config

feat: temp publish config #4

name: Publish stack-context
on:
workflow_dispatch:
inputs:
version:
description: 'Введите версию x.x.x'
required: true
push:
branches:
- feat/stack-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 ./external/stack-context
yarn build
- name: Set version
if: success()
run: |
cd ./external/stack-context
git config user.name core-ds-bot
git config user.email ds@gitmax.tech
yarn --new-version version 1.16.0
git push
- name: Publish
if: success()
run: |
cd ./external/stack-context
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}