Skip to content

Release

Release #20

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
version:
description: 'Release version'
required: true
type: string
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: denoland/setup-deno@main
with:
deno-version: v1.x
- run: deno task npm ${{ inputs.version }}
- name: Publish to npm
run: |
cd npm
npm config set //registry.npmjs.org/:_authToken '${NPM_TOKEN}'
npm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Release
uses: softprops/action-gh-release@v1
with:
name: v${{ inputs.version }}
tag_name: v${{ inputs.version }}
generate_release_notes: true