Skip to content

Merge pull request #11 from dragonrealms-phoenix/develop #11

Merge pull request #11 from dragonrealms-phoenix/develop

Merge pull request #11 from dragonrealms-phoenix/develop #11

Workflow file for this run

name: Release
on:
# Allow developers to run this on-demand.
workflow_dispatch:
# When merge to main branch then publish a release.
push:
branches:
- main
permissions:
contents: read # for checkout
env:
HUSKY: 0 # don't run husky hooks like commit-lint
jobs:
build:
name: Build
uses: ./.github/workflows/build.yml
secrets: inherit
release:
name: Release
runs-on: ubuntu-latest
needs: build
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Checkout source
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: yarn
cache-dependency-path: yarn.lock
- name: Install dependencies
run: yarn install
- name: Download artifacts
uses: actions/download-artifact@v3
with:
path: dist
- name: List artifacts
run: ls -R
working-directory: dist
- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: yarn semantic-release
- name: Sentry Release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ github.repository_owner }}
SENTRY_PROJECT: ${{ github.event.repository.name }}
with:
environment: production