From d345b61925d2fb9be34d12ee0e0649b90a075e25 Mon Sep 17 00:00:00 2001 From: Tobias Schneider Date: Sun, 26 Jun 2022 00:04:27 +0200 Subject: [PATCH] fix workflow --- .github/workflows/publish-pre.yml | 8 ++++---- .npmignore | 1 + .nvmrc | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/publish-pre.yml b/.github/workflows/publish-pre.yml index 469eece..e2c0385 100644 --- a/.github/workflows/publish-pre.yml +++ b/.github/workflows/publish-pre.yml @@ -13,8 +13,8 @@ jobs: with: node-version: 16 registry-url: https://registry.npmjs.org/ - - run: npm run build - - run: npm publish --tag pre --access public + - name: Build & Publish + run: npm ci && npm run build && npm publish --tag pre --access public env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} @@ -26,7 +26,7 @@ jobs: with: node-version: 16 registry-url: https://npm.pkg.github.com/ - - run: npm run build - - run: npm publish --tag pre --access public + - name: Build & Publish + run: npm ci && npm run build && npm publish --tag pre --access public env: NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file diff --git a/.npmignore b/.npmignore index 5b679ff..4831109 100644 --- a/.npmignore +++ b/.npmignore @@ -1,5 +1,6 @@ .github/ src/ test/ +.nvmrc MIGRATION.md tsconfig.json \ No newline at end of file diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..6f7f377 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v16