diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..d2ac518 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,17 @@ +name: Build + +on: push + +jobs: + build: + if: github.repository_owner == 'bitpatty' + name: Build Project + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '16.13.1' + - run: npm install + - run: npm run build + - run: npm run test diff --git a/.github/workflows/publish-npm-package.yml b/.github/workflows/publish-npm-package.yml index 7862839..87ce21e 100644 --- a/.github/workflows/publish-npm-package.yml +++ b/.github/workflows/publish-npm-package.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: '16.6.1' + node-version: '16.13.1' registry-url: 'https://npm.pkg.github.com' scope: '@bitpatty' - run: npm install @@ -36,7 +36,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: '16.6.1' + node-version: '16.13.1' registry-url: 'https://registry.npmjs.org' - run: npm install - run: npm run build