Skip to content

Commit

Permalink
πŸ€– [Workflows] Better labels
Browse files Browse the repository at this point in the history
  • Loading branch information
beefchimi committed Apr 1, 2024
1 parent 98fa779 commit 14b9ffa
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 21 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PR Labels
name: πŸ—ƒοΈ PR Labels
on: [pull_request_target]

jobs:
Expand All @@ -10,10 +10,10 @@ jobs:
pull-requests: write

steps:
- name: Checkout repo
- name: πŸ—³οΈ Checkout repo
uses: actions/checkout@v4

- name: Apply PR labels
- name: 🍭 Apply PR labels
uses: actions/labeler@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
12 changes: 6 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint
name: πŸ€– Lint
on: [push]

jobs:
Expand All @@ -7,20 +7,20 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
- name: πŸ—³οΈ Checkout repo
uses: actions/checkout@v4

- name: Setup Node 20.x to install with private scope
- name: πŸ”§ Setup Node 20.x
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install dependencies
- name: πŸ“¦ Install dependencies
run: npm ci

- name: Lint
- name: 🎨 Lint
run: npm run lint

- name: Prettier
- name: πŸ’„ Prettier
run: npm run format
17 changes: 10 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: πŸš€ Release

on:
push:
Expand All @@ -7,28 +7,31 @@ on:

jobs:
release:
name: Release
name: Version and release monorepo packages
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
- name: πŸ—³οΈ Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node 20.x to install with private scope
- name: πŸ”§ Setup Node 20.x
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install dependencies
- name: πŸ“¦ Install dependencies
run: npm ci

- name: Create PR or publish to NPM
- name: πŸ“£ Create PR or publish to NPM
id: changesets
uses: changesets/action@v1
with:
publish: npm run release
title: 'πŸ¦‹ [Release] Version packages'
commit: 'πŸ¦‹ [Changesets] Prepare for next release'
version: npm release:version
publish: npm release:publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: πŸ§ͺ Test
on: [push]

jobs:
Expand All @@ -7,17 +7,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
- name: πŸ—³οΈ Checkout repo
uses: actions/checkout@v4

- name: Setup Node 20.x to install with private scope
- name: πŸ”§ Setup Node 20.x
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install dependencies
- name: πŸ“¦ Install dependencies
run: npm ci

- name: Test
- name: πŸ§‘β€πŸ”¬ Test
run: npm run test

0 comments on commit 14b9ffa

Please sign in to comment.