Skip to content

Commit

Permalink
ci: upgrade actions (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Oct 3, 2023
1 parent c6f19db commit b76ddc5
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 185 deletions.
35 changes: 0 additions & 35 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

82 changes: 0 additions & 82 deletions .github/actions/nodejs/action.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/auto-add-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ jobs:
automate-project-columns:
runs-on: ubuntu-latest
steps:
- uses: taiga-family/ci/actions/setup-project@1.13.0
- uses: taiga-family/ci/actions/setup/project@1.20.0
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
6 changes: 1 addition & 5 deletions .github/workflows/build-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Setup Node.js and Cache
uses: ./.github/actions/nodejs

- uses: taiga-family/ci/actions/setup/[email protected]
- run: npx nx build demo

concurrency:
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/build-prerender.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Setup Node.js and Cache
uses: ./.github/actions/nodejs

- name: Build demo by prerender
run: npx nx build-gh-pages demo
- uses: taiga-family/ci/actions/setup/[email protected]
- run: npx nx build-gh-pages demo

concurrency:
group: build-prerender-${{ github.workflow }}-${{ github.ref }}
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Setup Node.js and Cache
uses: ./.github/actions/nodejs

- uses: taiga-family/ci/actions/setup/[email protected]
- run: npm run run-many:build:libs

concurrency:
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Setup Node.js and Cache
uses: ./.github/actions/nodejs

- uses: taiga-family/ci/actions/setup/[email protected]
- run: npx nx build demo

- name: Debug output
run: tree dist/demo -P '*.html'

- name: Deploy preview

uses: FirebaseExtended/action-hosting-deploy@v0
- uses: FirebaseExtended/action-hosting-deploy@v0
continue-on-error: true
if: ${{ env.IS_FORK == 'false' && env.IS_DEPENDABOT == 'false' }}
with:
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Setup Node.js and Cache
uses: ./.github/actions/nodejs

- name: Build demo by prerender
run: npx nx build-gh-pages demo

- uses: taiga-family/ci/actions/setup/[email protected]
- run: npx nx build-gh-pages demo
- name: Deploy
uses: JamesIves/[email protected]
with:
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Setup Node.js and Cache
uses: ./.github/actions/nodejs

- run: |
npm run prettier -- --check
npm run typecheck
npm run lint
- uses: taiga-family/ci/actions/setup/[email protected]
- run: npm run prettier -- --check
- run: npm run typecheck
- run: npm run lint

concurrency:
group: lint-${{ github.workflow }}-${{ github.ref }}
Expand Down
24 changes: 9 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,13 @@ jobs:
ref: ${{ github.head_ref }}
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}

- name: Setup Node.js and Cache
uses: ./.github/actions/nodejs

- name: Setup GIT username and NPM token
run: |
git config --global user.name "taiga-family-bot"
git config --global user.email "[email protected]"
git config remote.origin.url https://x-access-token:${{ secrets.TAIGA_FAMILY_BOT_PAT }}@github.com/$GITHUB_REPOSITORY
npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}"
NPM_WHOAMI_OUTPUT=$(npm whoami)
echo "::debug::npm whoami: ${NPM_WHOAMI_OUTPUT}"
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/config/[email protected]
with:
token: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}
- uses: taiga-family/ci/actions/setup/config/[email protected]
with:
token: ${{ secrets.NPM_TOKEN }}

- name: Lerna update version of packages
if: always()
Expand All @@ -52,12 +48,10 @@ jobs:
npx lerna version --no-private
fi
- name: Build libraries
run: npx nx run-many --target=build --parallel=1 --output-style=stream --exclude=demo
- run: npx nx run-many --target=build --parallel=1 --output-style=stream --exclude=demo

- name: Publish
- run: npx nx run-many --target=publish --parallel=1 --output-style=stream
if: always()
run: npx nx run-many --target=publish --parallel=1 --output-style=stream

concurrency:
group: release-${{ github.workflow }}-${{ github.ref }}
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,9 @@ jobs:
name: ${{ matrix.project }}
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Setup Node.js and Cache
uses: ./.github/actions/nodejs

- name: Run tests for ${{ matrix.project }}
run: npx nx test ${{ matrix.project }}

- name: Archive coverage artifacts
uses: actions/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- run: npx nx test ${{ matrix.project }}
- uses: actions/[email protected]
with:
name: coverage-${{ github.workflow }}-${{ github.run_id }}
path: coverage
Expand Down

0 comments on commit b76ddc5

Please sign in to comment.