Release #20
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: Release | |
| on: | |
| # manual trigger | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| name: release | |
| runs-on: | |
| group: npm-deploy | |
| environment: | |
| name: release | |
| permissions: | |
| id-token: write | |
| contents: write | |
| steps: | |
| - uses: bullfrogsec/bullfrog@1831f79cce8ad602eef14d2163873f27081ebfb3 # v0.8.4 | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Setup Node | |
| uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5 | |
| with: | |
| cache: yarn | |
| node-version: 20 | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@50d5a8956f2e319df19e6b57539d7e2acb9f8c1e # v1.5.0 | |
| with: | |
| version: v1.4.3 | |
| - name: Install dependencies | |
| run: | | |
| yarn install --immutable --immutable-cache | |
| git submodule update --init --recursive | |
| - name: Compile | |
| run: yarn compile | |
| - name: Install npm | |
| run: npm install -g npm@latest | |
| - name: Release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: yarn publish |