Skip to content

Commit

Permalink
Modernize package
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptammergard committed Mar 30, 2023
1 parent b01e2b0 commit cfdb377
Show file tree
Hide file tree
Showing 11 changed files with 3,550 additions and 5,648 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm

- name: Install dependencies
run: pnpm install

- name: Create release PR or publish to npm
uses: changesets/action@v1
with:
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
14 changes: 11 additions & 3 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
name: Review

on: pull_request
on:
pull_request:
branches:
- main

jobs:
review:
name: Review
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
fetch-depth: 0
version: 8

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm

- name: Review
run: yarn review
run: pnpm review
29 changes: 0 additions & 29 deletions .github/workflows/semantic-release.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .releaserc.js

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2022 Tammergård
Copyright 2023 Tammergård

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# namedays

A minimal namedays API
A minimal namedays API.

## Installation

Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@
"lint": "eslint .",
"format": "prettier --write .",
"format-check": "prettier --check .",
"review": "yarn install --frozen-lockfile && yarn format-check && yarn lint && yarn test && yarn build",
"review": "pnpm install --frozen-lockfile && pnpm format-check && pnpm lint && pnpm test && pnpm build",
"test": "vitest --run"
},
"devDependencies": {
"@changesets/cli": "^2.26.1",
"@tammergard/eslint-config-base": "3.2.0",
"@tammergard/prettier-config": "2.0.0",
"@tammergard/semantic-release-config-npm": "1.2.0",
"@tammergard/tsconfig": "2.2.0",
"eslint": "8.37.0",
"prettier": "2.8.7",
"semantic-release": "21.0.0",
"tsup": "6.7.0",
"typescript": "5.0.2",
"vitest": "0.29.8"
Expand Down
Loading

0 comments on commit cfdb377

Please sign in to comment.