fix: Update teleport utils (#608) #990
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: build | |
| on: [push] | |
| jobs: | |
| build-linting: | |
| uses: ./.github/workflows/linting.yml | |
| release: | |
| needs: [build-linting] | |
| 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@v4 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false # https://stackoverflow.com/questions/74744498/github-pushing-to-protected-branches-with-fine-grained-token | |
| - 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 --no-fund` on cli-output-helpers | |
| run: npm install --no-package-lock --no-fund | |
| 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 --no-fund` on nevermore-template-helpers | |
| run: npm install --no-package-lock --no-fund | |
| working-directory: tools/nevermore-template-helpers | |
| - name: Build nevermore-template-helpers | |
| run: npm run build | |
| working-directory: tools/nevermore-template-helpers | |
| - name: Setup npm for GitHub Packages | |
| run: | | |
| echo -e "\n//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" >> .npmrc | |
| echo -e "\n//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" >> ~/.npmrc | |
| echo -e "\n//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc | |
| echo -e "\n//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - 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 --no-fund | |
| - name: Git reset .npmrc | |
| run: git checkout .npmrc | |
| - name: Create Release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.NEVERMORE_CI_PAT }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| run: npx auto shipit | |
| - name: Upload lerna logs | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: lerna-debug.log | |
| path: lerna-debug.log |