From 2bdf9f87cbb2141d663fd728a915107efef91d65 Mon Sep 17 00:00:00 2001 From: Eugene Ghanizadeh Date: Tue, 15 Sep 2020 11:12:50 +0200 Subject: [PATCH 1/2] Revert "Update npm-publish.yml" This reverts commit 754dda82555f1a3b8aa9c4a46ae0f924a57a8134. --- .github/workflows/npm-publish.yml | 38 +++++++++++++++---------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 92277a1..77504f7 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -9,23 +9,21 @@ jobs: name: npm-publish runs-on: ubuntu-latest steps: - - name: To be completed - run: echo "This workflow needs to be completed" - #- name: Checkout repository - # uses: actions/checkout@master - #- name: Set up Node.js - # uses: actions/setup-node@master - # with: - # node-version: 12.0.0 - #- name: Build the package - # run: npm run build - #- name: Publish if version has been updated - # uses: pascalgn/npm-publish-action@1.3.3 - # with: # Documentation of inputs https://github.com/marketplace/actions/publish-to-npm#inputs - # tag_name: "v%s" - # tag_message: "v%s" - # commit_pattern: "^Release (\\S+)" - # workspace: "." - # env: # Documentation of environment variables https://github.com/marketplace/actions/publish-to-npm#environment-variables - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this as is, it's automatically generated - # NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} # Must be set in repo settings + - name: Checkout repository + uses: actions/checkout@master + - name: Set up Node.js + uses: actions/setup-node@master + with: + node-version: 12.0.0 + - name: Build the package + run: npm run build + - name: Publish if version has been updated + uses: pascalgn/npm-publish-action@1.3.3 + with: # Documentation of inputs https://github.com/marketplace/actions/publish-to-npm#inputs + tag_name: "v%s" + tag_message: "v%s" + commit_pattern: "^Release (\\S+)" + workspace: "." + env: # Documentation of environment variables https://github.com/marketplace/actions/publish-to-npm#environment-variables + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this as is, it's automatically generated + NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} # Must be set in repo settings \ No newline at end of file From 2804d74cea073a52ab334ae6f535e5dd2bcf4778 Mon Sep 17 00:00:00 2001 From: Tyson Williams Date: Tue, 15 Sep 2020 08:34:01 -0500 Subject: [PATCH 2/2] add npm install steps to publish workflow --- .github/workflows/npm-publish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 77504f7..4fc6329 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -15,6 +15,10 @@ jobs: uses: actions/setup-node@master with: node-version: 12.0.0 + - name: Install dependencies in .codedoc + run: cd .codedoc && npm install + - name: Install dependencies in . + run: npm install - name: Build the package run: npm run build - name: Publish if version has been updated