-
Notifications
You must be signed in to change notification settings - Fork 53
32 lines (32 loc) · 1.07 KB
/
publish-unstable.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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