Merge pull request #125 from defer-run/fix-internal-execution-and-def… #120
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: "release" | |
on: | |
push: | |
branches: | |
- "master" | |
jobs: | |
publish: | |
runs-on: "ubuntu-22.04" | |
steps: | |
- uses: "actions/checkout@v3" | |
with: | |
fetch-depth: 0 | |
- uses: "actions/setup-node@v3" | |
with: | |
node-version: 18 | |
cache: "npm" | |
- name: "Cancel previous runs" | |
uses: "styfle/[email protected]" | |
continue-on-error: true | |
with: | |
access_token: ${{ secrets.GITHUB_TOKEN }} | |
- run: "npm ci --no-audit" | |
- run: "npm run build" | |
- run: "npx bob check" | |
env: | |
DEFER_NO_LOCAL_SCHEDULER: 1 | |
- name: "release / pull_request" | |
id: "changesets" | |
uses: "dotansimha/[email protected]" | |
with: | |
publish: "npm run release" | |
version: "npx changeset version" | |
commit: 'Update defer client version' | |
title: "Upcoming Release Changes" | |
createGithubReleases: "aggregate" | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |