Skip to content

Commit

Permalink
Merge pull request #7 from FlowFuse/ci-release-workflow
Browse files Browse the repository at this point in the history
ci: Add package release workflow
  • Loading branch information
hardillb authored Dec 2, 2024
2 parents ccbd59e + fb74d1f commit 1707bb9
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release
on:
push:
tags:
- "v*.*.*"

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- name: Install dependencies
run: npm ci

- name: Build and test
run: |
npm run build
npm run test
- name: Publish package
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_PUBLISH_TOKEN }}

0 comments on commit 1707bb9

Please sign in to comment.