Merge pull request #405 from Quenty/users/quenty/pack #504
This file contains 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: build | |
on: [push] | |
jobs: | |
lint: | |
uses: ./.github/workflows/lint.yml | |
release: | |
needs: lint | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup node | |
uses: actions/setup-node@v2 | |
env: | |
NPM_TOKEN: '' # https://github.com/JS-DevTools/npm-publish/issues/15 | |
with: | |
cache-dependency-path: package.json # we don't have a package-lock.json so we'll use this instead... | |
node-version: "18" | |
- name: Run `npm install --no-package-lock` on cli-output-helpers | |
run: npm install --no-package-lock | |
working-directory: tools/cli-output-helpers | |
- name: Build cli-output-helpers | |
run: npm run build | |
working-directory: tools/cli-output-helpers | |
- name: Run `npm install --no-package-lock` on nevermore-template-helpers | |
run: npm install --no-package-lock | |
working-directory: tools/nevermore-template-helpers | |
- name: Build nevermore-template-helpers | |
run: npm run build | |
working-directory: tools/nevermore-template-helpers | |
- name: Run `npm install --no-package-lock` on nevermore-cli | |
run: npm install --no-package-lock | |
working-directory: tools/nevermore-cli | |
- name: Build nevermore-cli | |
run: npm run build | |
working-directory: tools/nevermore-cli | |
- name: Run npm install | |
run: npm install --no-save | |
- name: Create Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: npx auto shipit | |
- name: Upload lerna logs | |
if: failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: lerna-debug.log | |
path: lerna-debug.log |