Skip to content

Merge pull request #66 from rycont/block-declaring-function-header-co… #44

Merge pull request #66 from rycont/block-declaring-function-header-co…

Merge pull request #66 from rycont/block-declaring-function-header-co… #44

Workflow file for this run

name: Publish
on:
push:
branches:
- main
paths:
- 'deno.json'
jobs:
Publish:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- name: Setup repo
uses: actions/checkout@v4
- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Apply Workspace Version
run: deno task apply-version
- name: Install Dependencies
run: deno install --allow-scripts
- name: Publish to JSR
run: deno task publish
- name: Get version from deno.json
id: get_version
run: echo "::set-output name=version::$(jq -r .version deno.json)"
- name: Create GitHub tag
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git tag -a v${{ steps.get_version.outputs.version }} -m "Release version ${{ steps.get_version.outputs.version }}"
git push origin v${{ steps.get_version.outputs.version }}