diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e69de29..9450e0c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: build-scratch-analysis +on: + push: +jobs: + setup: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version-file: '.nvmrc' + - name: Install Dependencies + run: npm ci + - name: Run Tests + run: npm test + - name: Semantic Release + if: github.ref_name == 'master' + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: npx --no -- semantic-release + + + \ No newline at end of file diff --git a/.nvmrc b/.nvmrc index 6f7f377..3f430af 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v16 +v18