This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
feat: Drop support for Node < v18 and rework all files #33
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 | |
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 }} |