Skip to content

Commit

Permalink
ci: add npm package and changesets configs
Browse files Browse the repository at this point in the history
  • Loading branch information
rbondoc96 committed Aug 3, 2023
1 parent a8ef6d7 commit 5b44b8d
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 1 deletion.
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/config@2.3.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
5 changes: 5 additions & 0 deletions .changeset/long-mugs-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@pxeeio/express-async-controller": minor
---

v0.1.0 tagged
32 changes: 32 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish to NPM
on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: '8.x.x'

- name: Install Node.js v16
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Create Release PR or Publish
id: changesets
uses: changesets/action@v1
with:
publish: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
13 changes: 13 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.changeset
.github
.vscode
__tests__
src

.eslintignore
.eslintrc.cjs
pnpm-lock.yaml
tsconfig.json
tsconfig.base.json
tsconfig.test.json
tsup.config.ts
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@pxeeio/express-async-controller",
"type": "module",
"version": "1.0.0",
"version": "0.0.0",
"license": "MIT",
"author": "Rodrigo Bondoc",
"description": "",
Expand Down

0 comments on commit 5b44b8d

Please sign in to comment.