Skip to content

ci: add release dry-run (#34) #25

ci: add release dry-run (#34)

ci: add release dry-run (#34) #25

Workflow file for this run

name: "Release"
on:
push:
branches:
- main
paths-ignore:
- "CHANGELOG.md"
- "README.md"
- "CONTRIBUTING.md"
jobs:
code-validation:
uses: ./.github/workflows/code_validation.yml
release:
needs: [code-validation]
runs-on: ubuntu-latest
concurrency: release
permissions:
id-token: write
contents: write
issues: write
pull-requests: write
packages: write
env:
HUSKY: 0
steps:
- name: Check out the repository
uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "yarn"
- name: Install dependencies
run: |
yarn install
- name: Build Typescript Definitions
run: |
yarn tsc
- name: Build
run: |
yarn build
- name: Bump and Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release