Merge pull request #485 from c-commerce/feat/mt-unis-operator #1095
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Node.js CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.CHARLES_RELEASER_PAT }} | |
| NPM_TOKEN: ${{ secrets.NPM_HELLO_CHARLES_AUTOMATION_TOKEN }} | |
| node-version: "14.17.4" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Cache node modules | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: cache-node-modules | |
| with: | |
| path: node_modules | |
| key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('package-lock.json') }} | |
| - name: Use Node.js ${{ env.node-version }} | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: ${{ env.node-version }} | |
| - name: install | |
| run: npm install | |
| - name: test | |
| run: npm run test:prod | |
| - name: build | |
| run: npm run build | |
| - name: coverage | |
| run: npm run coverage | |
| - name: release | |
| run: npm run semantic-release |