Skip to content

Disallow hour-only offsets #76

Disallow hour-only offsets

Disallow hour-only offsets #76

Workflow file for this run

# .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