release v2.2.49.ucrypto.0 #559
Workflow file for this run
This file contains hidden or 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: Build and Publish | |
| # INFO: This workflow can't push to the repository | |
| permissions: read-all | |
| # INFO: Run workflow on changes to the sdks | |
| on: push | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| if: startsWith(github.event.head_commit.message, 'release') | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup Node 18 | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20.x | |
| - name: Cache dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node- | |
| - name: Install dependencies | |
| env: | |
| YARN_ENABLE_IMMUTABLE_INSTALLS: false | |
| run: | | |
| yarn install | |
| - name: Build package | |
| run: | | |
| yarn build | |
| - name: Read NPM Key | |
| run: | | |
| echo 'npmAuthToken: "${{ secrets.NPM_PUBLISH_KEY }}"' >> .yarnrc.yml | |
| - name: Publish 🎉 | |
| run: | | |
| yarn publish |