Skip to content

Commit

Permalink
chore: add publish-unstable workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bapmrl committed Dec 21, 2023
1 parent 957cc8d commit cc17ce2
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish-unstable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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
fetch-depth: 1
ref: ${{ github.head_ref || github.ref }}
- name: Use Node.js
uses: ./.github/actions/setup-node
- name: Install dependencies
run: yarn install
- name: Run publish script
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
git config user.email [email protected]
git config user.name "Slice Machine Bot"
git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main
yarn publish unstable --dry-run --tolerate-republish

0 comments on commit cc17ce2

Please sign in to comment.