Skip to content

release

release #82

Workflow file for this run

name: release
on:
push:
branches: [main]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install package dependencies
run: yarn install
- name: Run Tests
run: yarn test:ci
- name: Compress
run: mkdir --parents dist; tar --create --gzip --verbose --directory=packages --exclude=node_modules --exclude=adr --file dist/gatsby-theme-adr.tar.gz gatsby-theme-adr
- name: Semantic Release
if: ${{ success() }}
uses: cycjimmy/semantic-release-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}