Skip to content

Merge pull request #67 from long-woo/fix/action_name #22

Merge pull request #67 from long-woo/fix/action_name

Merge pull request #67 from long-woo/fix/action_name #22

Workflow file for this run

name: Publish Package to npmjs
on:
push:
branches: ['master']
paths:
- src/npm/package.json
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Setup Deno
uses: denoland/[email protected]
with:
deno-version: v1.x
# 使用 dnt(https​://deno.land/x/dnt​@0.38.0/mod.ts) 打包
- name: 构建成 npm 包
run: deno task build:npm
# Setup .npmrc file to publish to npm
- name: 发布到 npmjs
uses: actions/[email protected]
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: |
cd npm_dist
npm ci
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}