Skip to content

Commit

Permalink
[chore] remove changeset and add npm publish github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nielk committed Dec 23, 2024
1 parent ed9fb93 commit 91d956d
Show file tree
Hide file tree
Showing 8 changed files with 73 additions and 694 deletions.
8 changes: 0 additions & 8 deletions .changeset/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/config.json

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/thick-apples-build.md

This file was deleted.

59 changes: 59 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Publish Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]

steps:
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Lint
run: pnpm run lint

- name: Test
run: pnpm run test

- name: Build
run: pnpm run build

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
38 changes: 0 additions & 38 deletions .github/workflows/release.yml

This file was deleted.

13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ 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).

## [0.0.56] - 2024-12-23

### Added

- CI: added `npm publish` github workflow

### Changed

- Updated dependencies
- Fix minor regex performance issue

[0.0.56]: https://github.com/nielk/idonttrustlikethat-fast-check/releases/tag/v0.0.56

## [0.0.55] - 2024-10-19

### Added
Expand Down
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,13 @@
"coverage": "vitest run --coverage",
"update:deps": "pnpm up --latest -i",
"prepublishOnly": "pnpm build",
"knip": "knip",
"changeset": "changeset",
"version": "changeset version",
"release": "pnpm build && changeset publish"
"knip": "knip"
},
"peerDependencies": {
"fast-check": ">3.15.0 latest",
"idonttrustlikethat": ">2.1.0 latest"
},
"devDependencies": {
"@changesets/cli": "2.27.11",
"@codecov/vite-plugin": "1.6.0",
"@eslint/compat": "1.2.4",
"@eslint/eslintrc": "3.2.0",
Expand Down
Loading

0 comments on commit 91d956d

Please sign in to comment.