Skip to content

Commit 347e67f

Browse files
committed
Updated readme and workflows
1 parent 12b89f7 commit 347e67f

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.github/workflows/publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
id-token: write
12+
steps:
13+
- uses: actions/checkout@v4
14+
# Setup .npmrc file to publish to npm
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: 24
18+
registry-url: "https://registry.npmjs.org"
19+
20+
- name: Install npm 11.5
21+
run: npm install -g npm@11.5
22+
23+
- name: Display node and npm versions
24+
run: |
25+
node -v
26+
npm -v
27+
28+
- name: Run a clean install of the project
29+
run: npm ci
30+
31+
- name: Publish the package to npm
32+
run: npm publish --provenance --access public
33+
env:
34+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
# `app-template`
1+
# React 17 Library Template
2+
3+
This repository provides a minimal template and CI workflows for developing React 17 components, and publishing them to NPM as a component library.

0 commit comments

Comments
 (0)