Skip to content

Commit 02323af

Browse files
xrlalishaevn
andauthored
CI! (#82)
* Switching to namespaced package, github actions to create the repository * bump * no more release guard * WIP * try setting some node engine constraints * WIP * checking in * WIP * Release 0.1.2 * CI * Release 0.1.3 * forget releases, it's about tags * Release 0.1.4 * only version * Release 0.1.5 * back to basics * Release 0.1.6 * A wee bit more context * ci builds lib * Release 0.1.7 * downgrade the node version to ^18.13.0 * downgrade the node version to ^18.13.0 * Release 0.1.8 * readme updates Co-authored-by: Alisha Evans <[email protected]>
1 parent add5422 commit 02323af

File tree

6 files changed

+30037
-17043
lines changed

6 files changed

+30037
-17043
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
on:
3+
push:
4+
tags: ["*"]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: read
10+
packages: write
11+
steps:
12+
- uses: actions/checkout@v3
13+
# Setup .npmrc file to publish to GitHub Packages
14+
- uses: actions/setup-node@v3
15+
with:
16+
registry-url: 'https://npm.pkg.github.com'
17+
# Defaults to the user or organization that owns the workflow file
18+
scope: '@octocat'
19+
node-version-file: package.json
20+
- run: npm ci
21+
- run: npm run build-lib
22+
- run: npm publish
23+
env:
24+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# dependencies
22
node_modules
33
dist
4+
yarn-error.log

.release-it.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"npm": {
3+
"publish": false
4+
}
5+
}

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,20 @@ npm run build-lib # use when you want to build the library for publishing
105105
npm run watch-lib # use when you want to build the library for local use; it will watch for changes. it may take up to 30 seconds to reflect a change though
106106
```
107107
108+
## Cutting a New Release
109+
A git tag should exist for every release. We use `release-it` to automate the coordination of package.json and git tag.
110+
111+
If you want to release a new semver release run:
112+
113+
npm run release
114+
(You will be prompted to select a release type, e.g. patch)
115+
116+
And be sure to say yes to all the prompts, you want a commit, you want a tag, and you want to push up to github.
117+
118+
## Teaching Yarn How To Install This Library
119+
120+
yarn add @scientist-softserv/webstore-component-library@https://github.com/scientist-softserv/webstore-component-library
121+
108122
## Authors and acknowledgment
109123
Alisha Evans
110124

0 commit comments

Comments
 (0)