Skip to content

Commit

Permalink
build: initial attempt at release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
robertrossmann committed Jul 23, 2024
1 parent a6d586b commit acdc9d3
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: release
run-name: Release npm ${{ github.ref_name }}

on:
push:
branches:
- master
paths:
- package.json
workflow_dispatch:
inputs:
channel:
type: choice
description: 'The npm dist-tag to publish to (default: `latest`)'
default: latest
options:
- latest
- next

jobs:
release:
permissions:
contents: write
id-token: write

name: npm release
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: npm
- run: make compile
- uses: JS-DevTools/npm-publish@v3.1.1
with:
token: ${{ secrets.NPM_TOKEN }}
tag: ${{ inputs.channel }}
provenance: true

- run: git status
- run: git log --oneline

0 comments on commit acdc9d3

Please sign in to comment.