Merge pull request #10 from mrmilu/perf/improved-concurrency-of-requests #24
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: Release | |
on: | |
workflow_dispatch: | |
push: | |
branches: [master] | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.BOT_ACCESS_TOKEN }} | |
- name: git config user | |
run: | | |
git config --global user.name mrm-dev | |
git config --global user.email [email protected] | |
- name: Setup Node.js environment | |
uses: actions/[email protected] | |
with: | |
node-version: "18" | |
- name: Setup yarn | |
run: | | |
corepack enable | |
corepack prepare [email protected] --activate | |
- name: Install dependencies | |
run: yarn | |
- name: Release | |
run: | | |
yarn release | |
git push --follow-tags origin master --no-verify | |
yarn build | |
- name: Set version tags | |
run: | | |
echo "CORE_LAST_TAG=core@v$(./package_version.sh --path=./packages/core)" >> $GITHUB_ENV | |
echo "LINTER_LAST_TAG=linter@v$(./package_version.sh --path=./packages/linter)" >> $GITHUB_ENV | |
- name: Publish Core | |
uses: JS-DevTools/npm-publish@v2 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
package: "./packages/core/package.json" | |
- name: Publish Linter | |
uses: JS-DevTools/npm-publish@v2 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
package: "./packages/linter/package.json" |