Skip to content

Commit

Permalink
0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
hikariNTU committed Jun 1, 2022
1 parent 19d1daa commit 579672e
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 72 deletions.
71 changes: 0 additions & 71 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ on:
- next

workflow_dispatch:
inputs:
force-publish:
description: trigger publish pipeline manually
type: boolean
required: false
default: false

jobs:
test:
Expand All @@ -39,68 +33,3 @@ jobs:

- name: Test
run: pnpm test run

build:
if: github.ref_name == 'main'
needs: test
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Check version changes
uses: EndBug/version-check@v2
id: check
with:
file-name: ./packages/contrast/package.json

- name: Install pnpm
if: steps.check.outputs.changed == 'true'
uses: pnpm/action-setup@v2

- name: Set node
if: steps.check.outputs.changed == 'true'
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: pnpm

- name: Install
if: steps.check.outputs.changed == 'true'
run: pnpm install

- name: Build
if: steps.check.outputs.changed == 'true'
run: pnpm --filter wcag-contrast-util run build

- name: Publish
if: steps.check.outputs.changed == 'true'
run: pnpm --filter wcag-contrast-util publish
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

check-npm:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Check version changes
uses: EndBug/version-check@v2
id: check
with:
file-name: ./packages/contrast/package.json

- name: Install pnpm
uses: pnpm/action-setup@v2

- name: Set node
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: pnpm

- name: Check
run: npm whoami
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
38 changes: 38 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Publish Package

on:
push:
tags:
- v*
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/action-setup@v2

- name: Set node
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: pnpm

- name: Install
run: pnpm install

- name: Build
run: pnpm --filter wcag-contrast-util run build

- run: npx conventional-github-releaser -p angular
env:
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Publish
run: pnpm --filter wcag-contrast-util publish
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "wcag-contrast",
"private": "true",
"version": "1.0.0",
"version": "0.1.4",
"description": "WCAG contrast criterion",
"keywords": [
"WCAG",
Expand Down

0 comments on commit 579672e

Please sign in to comment.