NPM publish workflow #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: NPM publish workflow | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'main' | |
paths-ignore: | |
- '.github/workflows/*' # не запускать воркфлоу при обновлении самих воркфлоу | |
jobs: | |
Prepare_and_publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get repository code | |
uses: actions/checkout@v4 | |
- name: Install node modules | |
run: yarn | |
- name: Make build | |
run: yarn build | |
- name: Upload build artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
path: build | |
name: codebud-test-wf-build | |
- name: Get build folder | |
uses: actions/download-artifact@v3 | |
with: | |
name: codebud-test-wf-build |