This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
chore(build): Add deno.json and mod.ts, update the build workflows an… #29
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 NPM Package | ||
on: | ||
push: | ||
branches: [master] | ||
jobs: | ||
test: | ||
name: Test | ||
uses: ./.github/workflows/tests.yml | ||
Check failure on line 10 in .github/workflows/npm-publish.yml GitHub Actions / Publish NPM PackageInvalid workflow file
|
||
secrets: inherit | ||
publish-npm: | ||
runs-on: ubuntu-latest | ||
needs: test | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/[email protected] | ||
- name: Build commonjs, es6, esnext and amd | ||
run: | | ||
yarn build:cjs | ||
yarn build:es | ||
yarn build:types | ||
- name: Publish to npm | ||
run: yarn release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |