Add ZodReadonly (#2634) #29
Workflow file for this run
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
# .github/release.yml | |
name: Release on npm (canary) | |
on: | |
push: | |
branches: | |
- "master" | |
paths: | |
- "src/**" | |
- ".github/workflows/release-canary.yml" | |
jobs: | |
build_and_publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- name: Set up Node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- name: Install dependencies | |
run: | | |
yarn install | |
- name: Build | |
run: | | |
yarn clean | |
yarn build | |
- name: Set version | |
run: | | |
npm --no-git-tag-version version minor | |
npm --no-git-tag-version version $(npm pkg get version | sed 's/"//g')-canary.$(date +'%Y%m%dT%H%M%S') | |
- id: publish | |
name: Publish to NPM | |
uses: JS-DevTools/npm-publish@v1 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
dry-run: false | |
tag: canary |