Skip to content

Commit

Permalink
Merge pull request #11 from solana-developers/actions-publish
Browse files Browse the repository at this point in the history
feat: add publish action
  • Loading branch information
nickfrosty authored Jan 3, 2025
2 parents 3ebc511 + 87bc385 commit 42f7683
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Install Dependencies
uses: ./.github/workflows/actions/install-dependencies

- name: Build
run: pnpm build
- name: Unit Tests
run: pnpm test

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 42f7683

Please sign in to comment.