Skip to content

add async await and new uid system (#20) #31

add async await and new uid system (#20)

add async await and new uid system (#20) #31

Workflow file for this run

name: Publish
on:
push:
tags:
- '*'
jobs:
tests:
name: 'Tests'
runs-on: ubuntu-latest
strategy:
matrix:
deno-version: [ 1.35.2 ]
steps:
- uses: actions/checkout@v3
- name: Use Deno Version ${{ matrix.deno-version }}
uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno-version }}
- name: Deno fmt
run: deno task fmt:check
- name: Test Deno Module
run: deno task test
build:
name: 'Build'
needs: tests
runs-on: ubuntu-latest
strategy:
matrix:
deno-version: [ 1.35.2 ]
steps:
- uses: actions/checkout@v3
- name: Use Deno Version ${{ matrix.deno-version }}
uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno-version }}
- name: Convert Deno Module to NPM
run: deno task build:npm ${{ github.ref_name }}
- name: Install modules
run: |
cd npm
yarn
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: Publish
run: |
cd npm
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}