diff --git a/.github/workflows/feature.yaml b/.github/workflows/feature.yaml new file mode 100644 index 0000000..3432799 --- /dev/null +++ b/.github/workflows/feature.yaml @@ -0,0 +1,29 @@ +jobs: + test: + runs-on: ubuntu-latest + environment: release + name: Test + steps: + - name: setup repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: setup node.js + uses: actions/setup-node@v3 + with: + node-version: "18" + - run: npm ci + - run: npm run lint + - run: npm run test + - run: npm run build + timeout-minutes: 10 +name: Test and build +on: + pull_request: + branches: + - main + types: + - opened + - synchronize + - reopened + - ready_for_review diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 0000000..902e29b --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,27 @@ +jobs: + test: + runs-on: ubuntu-latest + environment: release + name: Test + steps: + - name: setup repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: setup node.js + uses: actions/setup-node@v3 + with: + node-version: "18" + - run: npm ci + - run: npm run lint + - run: npm run test + - run: npm run build + - run: npx semantic-release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} +name: Test, build and release +on: + push: + branches: + - main