Merge pull request #120 from lidofinance/dependabot/npm_and_yarn/ip-1… #115
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: Publish to registry | |
on: | |
push: | |
branches: | |
- "main" | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
environment: production | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn --frozen-lockfile | |
- name: Build packages | |
run: yarn build-packages | |
- name: Run checks | |
run: yarn check-packages | |
- name: Authenticate in npm registry | |
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Publish to npm registry | |
run: yarn release |