diff --git a/.github/workflows/genpkg.yml b/.github/workflows/genpkg.yml new file mode 100644 index 0000000..20d5114 --- /dev/null +++ b/.github/workflows/genpkg.yml @@ -0,0 +1,21 @@ +name: Node.js Package + +on: + release: + types: [created] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - run: yarn install + - run: yarn run build + - run: yarn run test + - uses: actions/setup-node@v1 + with: + node-version: 12 + registry-url: https://npm.pkg.github.com/ + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/ghpages.yml b/.github/workflows/ghpages.yml new file mode 100644 index 0000000..0086c54 --- /dev/null +++ b/.github/workflows/ghpages.yml @@ -0,0 +1,18 @@ +name: Deploy TypeDoc to GitHub Pages + +on: + release: + types: [created] + +jobs: + typedoc: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - run: yarn install + - run: yarn run build:docs + - uses: JamesIves/github-pages-deploy-action@releases/v3 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: gh-pages + FOLDER: .jsdoc