effector 23.2.2, effector-react 23.2.1 #246
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: effector publish | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'packages/*/package.json' | |
- 'packages/*/*/package.json' | |
jobs: | |
publish-npm: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- uses: actions/cache@v2 | |
with: | |
path: '**/node_modules' | |
key: node-16-modules-${{ hashFiles('**/yarn.lock') }} | |
- name: Install deps | |
if: steps.yarn-cache.outputs.cache-hit != 'true' | |
run: yarn install --frozen-lockfile | |
- name: set npm config | |
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN && npm config set //npm.pkg.github.com/:_authToken $GITHUB_TOKEN | |
env: | |
NPM_TOKEN: ${{ secrets.npm_token }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: publish packages | |
run: node tools/build publish latest | |
env: | |
PRINT_ERRORS: false | |
trigger_changelog_generator: | |
runs-on: ubuntu-latest | |
needs: [publish-npm] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Run pipeline for changelog generation | |
run: curl -X POST -d {} "$AMPLIFY_CHANGELOG_WEBHOOK" -H "Content-Type:application/json" | |
env: | |
AMPLIFY_CHANGELOG_WEBHOOK: ${{ secrets.amplify_changelog_webhook }} |