Skip to content

Merge pull request #2 from StauroDEV/aaron/api #7

Merge pull request #2 from StauroDEV/aaron/api

Merge pull request #2 from StauroDEV/aaron/api #7

Workflow file for this run

name: Publish
on:
push:
tags:
- '*'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Get tag version
if: startsWith(github.ref, 'refs/tags/')
id: get_tag_version
run: echo TAG_VERSION=${GITHUB_REF/refs\/tags\//} >> $GITHUB_OUTPUT
- name: install pnpm
uses: pnpm/action-setup@v2
with:
version: 8.x
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: npm build
run: deno run -A ./scripts/npm.ts ${{steps.get_tag_version.outputs.TAG_VERSION}}
env:
FILEBASE_TOKEN: ${{ secrets.FILEBASE_TOKEN }}
- name: npm publish
if: startsWith(github.ref, 'refs/tags/')
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: cd npm && npm publish