Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Merge branch 'main' into feat/ed/publish-dist-2 #21

Merge branch 'main' into feat/ed/publish-dist-2

Merge branch 'main' into feat/ed/publish-dist-2 #21

Workflow file for this run

name: Validate changes
on: push
jobs:
check:
name: 'Check, Lint, Test'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: |
yarn --frozen-lockfile --ignore-engines --ignore-optional --non-interactive --silent --ignore-scripts --production=false
yarn peer
- name: TypeScript Check
run: yarn typecheck
- name: Lint
run: yarn lint
- name: Test
run: yarn test
release:
name: Release
runs-on: ubuntu-latest
# if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
# needs: check
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_RELEASE_KEY }}
- name: Build
run: yarn build
- name: Release
run: |
npx --package=@auto-it/git-tag --package=@auto-it/omit-release-notes --package=auto -- auto shipit -vv
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}