Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🤖 [Workflows] Better labels #47

Merged
merged 1 commit into from
Apr 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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