📦 Publish package #4
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: 📦 Publish package | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| package: | |
| description: "Public package to publish (packages/public/*)" | |
| required: true | |
| type: choice | |
| options: | |
| - ios-common-cookies | |
| cliArgs: | |
| description: "CLI args" | |
| required: false | |
| default: "" | |
| jobs: | |
| publish: | |
| name: Publish selected package | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.FLOW_GITHUB_TOKEN }} | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Install dependencies | |
| run: yarn install --immutable | |
| - name: Set npm token | |
| uses: "./.github/actions/set-npm-token" | |
| with: | |
| npm-token: ${{ secrets.NPM_PUBLISH_TOKEN }} | |
| - name: Publish package | |
| working-directory: packages/public/${{ github.event.inputs.package }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.FLOW_GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | |
| run: npx semantic-release ${{ github.event.inputs.cliArgs }} |