Add variants to link to media #1481
Workflow file for this run
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 unstable | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
push: | |
branches: main | |
workflow_dispatch: | |
jobs: | |
publish-unstable: | |
name: Publish unstable | |
runs-on: ubuntu-latest | |
if: ${{ !startsWith(github.event.head_commit.message, 'release:') && !github.event.pull_request.draft }} | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.head_ref || github.ref }} | |
- name: Use Node.js | |
uses: ./.github/actions/setup-node | |
- name: Install dependencies | |
run: yarn install | |
- name: Build essentials | |
uses: ./.github/actions/build-essential | |
- name: Run publish script | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
git config user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com" | |
git config user.name "${GITHUB_ACTOR}" | |
yarn publish unstable --tolerate-republish |