From 6d5a115a12e4439649ae391f5b5159922fa1afd1 Mon Sep 17 00:00:00 2001 From: Nathan Pennie Date: Thu, 16 Apr 2020 19:32:59 -0400 Subject: [PATCH 1/4] Create genpkg.yml --- .github/workflows/genpkg.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/genpkg.yml diff --git a/.github/workflows/genpkg.yml b/.github/workflows/genpkg.yml new file mode 100644 index 0000000..5690e78 --- /dev/null +++ b/.github/workflows/genpkg.yml @@ -0,0 +1,27 @@ +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 + + publish-gpr: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - 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}} From f1346df228f1a2bbdbdc96e8c084666f4668f21d Mon Sep 17 00:00:00 2001 From: Nathan Pennie Date: Thu, 16 Apr 2020 19:43:00 -0400 Subject: [PATCH 2/4] Create ghpages.yml --- .github/workflows/ghpages.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/ghpages.yml 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 From 3d25ed71fd01c941e99f11a2c8a0f913870882cb Mon Sep 17 00:00:00 2001 From: Nathan Pennie Date: Thu, 16 Apr 2020 20:30:44 -0400 Subject: [PATCH 3/4] Update genpkg.yml --- .github/workflows/genpkg.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/genpkg.yml b/.github/workflows/genpkg.yml index 5690e78..20d5114 100644 --- a/.github/workflows/genpkg.yml +++ b/.github/workflows/genpkg.yml @@ -12,12 +12,6 @@ jobs: - run: yarn install - run: yarn run build - run: yarn run test - - publish-gpr: - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: node-version: 12 From e1966411fe18e7847fee8f7b9639462f5c2947c2 Mon Sep 17 00:00:00 2001 From: Nathan Pennie Date: Thu, 16 Apr 2020 20:34:22 -0400 Subject: [PATCH 4/4] Bump version since GH packages cannot be removed or edited --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5d47e45..abae23e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kb1rd/logootish-js", - "version": "0.3.3", + "version": "0.3.4", "description": "Logootish algorithm for matrix-notepad", "main": "dist/@kb1rd/logootish-js.min.js", "publishConfig": {