deploy-tag-version #22
Workflow file for this run
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
# .yaml files in this directory are executed workflows: | |
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions | |
# This workflow is triggered on pushes to non-main (or master) branches | |
# Builds and tests the app (just test) | |
name: deploy-tag-version | |
# https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions | |
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
deploy-tag-version: | |
name: Publish on new version tag | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: '0' | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
- name: Setup just | |
uses: extractions/setup-just@v1 | |
with: | |
just-version: '1.14.0' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup deno | |
uses: denoland/setup-deno@v1 | |
with: | |
deno-version: v1.32.1 | |
- name: publish | |
env: | |
DOCKER_REGISTRY: ghcr.io | |
# https://docs.github.com/en/free-pro-team@latest/actions/reference/authentication-in-a-workflow#about-the-github_token-secret | |
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: just deploy-tag-version | |