Skip to content

feat: Temporary specification validation workarounds #67

feat: Temporary specification validation workarounds

feat: Temporary specification validation workarounds #67

#
# Copyright 2021-Present The Open Workflow Specification Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
name: "Release :: Publish"
on:
pull_request:
types: [closed]
branches:
- main
- "*.x"
permissions:
contents: write
pull-requests: read
id-token: write
jobs:
publish:
if: |
github.repository == 'open-workflow-specification/editor' &&
github.event.pull_request.merged == true &&
github.event.pull_request.user.login == 'github-actions[bot]' &&
github.event.pull_request.title == 'chore: version packages' &&
startsWith(github.event.pull_request.head.ref, 'changeset-release/')
runs-on: ubuntu-latest
steps:
- name: Checkout release branch
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- name: Setup CI
uses: ./.github/actions/setup-ci
- name: Install dependencies
run: pnpm install
- name: Install Playwright browsers
run: pnpm playwright:install:ci
- name: Build packages
run: pnpm build:prod
- name: Publish to npm
uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d # v1.9.0
with:
publish: pnpm changeset publish