Skip to content

Commit

Permalink
Workflows + Canary release
Browse files Browse the repository at this point in the history
  • Loading branch information
boonya committed Jan 7, 2024
1 parent f7d842b commit ce1c4ea
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 4 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release

on:
workflow_dispatch:
release:
types:
- published

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- run: npm set '//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}'
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44 changes: 44 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Verify 👮🏽‍♂️

on:
workflow_dispatch:
workflow_call:
pull_request:
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
codestyle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- run: npm ci
- run: npm run codestyle-check

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- run: npm ci
- run: npm run lint

types:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- run: npm ci
- run: npm run typecheck
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.0.0-alpha.0]
## [1.0.0-canary.0]

### Initial release
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@boonya/react-toaster",
"version": "1.0.0-alpha.0",
"version": "1.0.0-canary.0",
"description": "Simple and lightweight react library to show stackable toasts.",
"keywords": [
"notification",
Expand Down Expand Up @@ -30,6 +30,8 @@
"verify": "npm run code-style && npm run lint",
"types": "tsc -p tsconfig.json --noEmit",
"build": "tsup",
"prepack": "jq 'del(.engines, .workspaces, .scripts, .devDependencies)' package.json > clean-package.json && mv clean-package.json package.json",
"postpack": "git checkout package.json",
"storybook:build": "npm run build -w storybook"
},
"dependencies": {
Expand Down

0 comments on commit ce1c4ea

Please sign in to comment.