one small step for man, one giant leap for abstraction (#166) #20
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: | |
- "main" | |
jobs: | |
publish: | |
runs-on: "ubuntu-22.04" | |
permissions: | |
id-token: write | |
contents: write | |
packages: write | |
pull-requests: write | |
issues: read | |
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 i" | |
- run: "npm run build" | |
- name: "release / pull_request" | |
id: "changesets" | |
uses: "dotansimha/[email protected]" | |
with: | |
publish: "npm run release" | |
version: "npm exec changeset version" | |
commit: "Update stagehand version" | |
title: "Upcoming Release Changes" | |
createGithubReleases: "aggregate" | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |