Skip to content

Commit

Permalink
feat(stack): tune action
Browse files Browse the repository at this point in the history
  • Loading branch information
fulcanellee committed May 17, 2024
1 parent e9b9a2b commit 27bd2b3
Showing 1 changed file with 27 additions and 25 deletions.
52 changes: 27 additions & 25 deletions .github/workflows/stack-context-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
version:
description: 'Введите версию x.x.x'
required: true
push:
branches:
- feat/stack_global_context

jobs:
build:
Expand All @@ -28,28 +31,27 @@ jobs:
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 ${{ github.event.inputs.version }}
git push
# git push origin v${{ github.event.inputs.version }}

- name: Publish
if: success()
run: |
cd ./packages/stack-context
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# - 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 ${{ github.event.inputs.version }}
# git push

# - name: Publish
# if: success()
# run: |
# cd ./packages/stack-context
# npm publish
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 27bd2b3

Please sign in to comment.