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

Commit

Permalink
Merge pull request #6 from BitGo/ci-release
Browse files Browse the repository at this point in the history
build: add release workflow
  • Loading branch information
0xJacobV authored Mar 24, 2023
2 parents 2bc6764 + 838dba0 commit 9085ace
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: Release

on:
push:
branches: [master]

# Only allow one release workflow to execute at a time, since each release
# workflow uses shared resources (git tags, package registries)
concurrency:
group: ${{ github.workflow }}

jobs:
release:
name: Release
if: github.repository_owner == 'BitGo'
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Checkout
uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 7

- name: Use Node.js
uses: actions/setup-node@v3
with:
cache: "pnpm"
node-version: lts/*

- name: Install dependencies
run: pnpm install

- name: Compile TypeScript
run: pnpm build

- name: Test
run: pnpm test

- name: Release
run: pnpm dlx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 9085ace

Please sign in to comment.