Publish #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Publish | |
on: | |
workflow_dispatch: | |
inputs: | |
package: | |
type: string | |
description: The directory the package is located in. | |
required: true | |
permissions: | |
contents: read | |
defaults: | |
run: | |
shell: bash | |
env: | |
CI: true | |
DENO_VERSION: v2.1.4 | |
jobs: | |
publish: | |
name: Release | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write # Needed for auth with JSR. | |
steps: | |
- name: 📚 Git checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
submodules: recursive | |
clean: true | |
persist-credentials: false | |
set-safe-directory: true | |
- name: 🦕 Install Deno | |
uses: denoland/setup-deno@041b854f97b325bd60e53e9dc2de9cb9f9ac0cba # v1.1.4 | |
with: | |
deno-version: ${{ env.DENO_VERSION }} | |
- name: 📦 Cache dependencies | |
run: deno install --allow-scripts | |
- name: 🗞️ Publish package | |
run: deno publish | |
working-directory: packages/${{ inputs.package }} |