Skip to content

Publish release

Publish release #129

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build-lint-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.x
- run: yarn install
- run: yarn run lint
- run: yarn run test
- run: yarn run build
deploy-demo:
# Only run on master commits; this is a further restriction of the top-level `on`.
if: github.event_name == 'push'
needs: build-lint-test
strategy:
matrix:
service: [neogrok, zoekt]
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only --config demo/fly.${{ matrix.service }}.toml --ignorefile demo/Dockerfile.${{ matrix.service }}.dockerignore
release:
# Only run on master commits; this is a further restriction of the top-level `on`.
if: github.event_name == 'push'
needs: build-lint-test
runs-on: ubuntu-latest
concurrency: release-${{ github.ref }}
permissions:
contents: write # to create releases
pull-requests: write # to create pull requests
steps:
- uses: actions/checkout@v3
with:
# Changesets needs full history to create proper changelogs.
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 20.x
- run: yarn install
- uses: changesets/action@v1
with:
commit: Publish release
title: Publish release
publish: npx changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}