Skip to content

Commit 1cd0b34

Browse files
authored
Merge pull request #193 from conorheffron/feat/npm-pub
Release v3.1.3
2 parents f0a4027 + 8aa56f4 commit 1cd0b34

4 files changed

Lines changed: 78 additions & 6 deletions

File tree

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2+
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3+
name: Node.js Package
4+
5+
on:
6+
release:
7+
types: [created]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
- run: npm ci
20+
working-directory: './frontend'
21+
- run: npm run test
22+
working-directory: './frontend'
23+
24+
publish-gpr:
25+
needs: build
26+
runs-on: ubuntu-latest
27+
permissions:
28+
contents: read
29+
packages: write
30+
steps:
31+
- uses: actions/checkout@v4
32+
- uses: actions/setup-node@v4
33+
with:
34+
node-version: '20.x'
35+
registry-url: https://npm.pkg.github.com/
36+
scope: '@conorheffron'
37+
- run: npm ci
38+
working-directory: './frontend'
39+
- run: npm set "//npm.pkg.github.com/:_authToken=$NPM_TOKEN"
40+
working-directory: './frontend'
41+
env:
42+
NPM_TOKEN: ${{secrets.GITHUB_TOKEN}}
43+
- run: echo registry=https://npm.pkg.github.com/conorheffron >> .npmrc
44+
working-directory: './frontend'
45+
- run: npm publish
46+
working-directory: './frontend'
47+
env:
48+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
49+
50+
publish-npm:
51+
needs: build
52+
runs-on: ubuntu-latest
53+
permissions:
54+
contents: read
55+
packages: write
56+
steps:
57+
- uses: actions/checkout@v4
58+
- uses: actions/setup-node@v4
59+
with:
60+
node-version: '20.x'
61+
registry-url: https://registry.npmjs.org/
62+
- run: npm ci
63+
working-directory: './frontend'
64+
- run: npm set "//registry.npmjs.org/conorheffron/:_authToken=$NPM_TOKEN"
65+
working-directory: './frontend'
66+
env:
67+
NPM_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
68+
- run: npm publish --access public
69+
working-directory: './frontend'
70+
env:
71+
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}

backend/hr/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"""
1010

1111
__title__ = 'booking-sys'
12-
__version__ = '3.1.2'
12+
__version__ = '3.1.3'
1313
__author__ = 'Conor Heffron'
1414

1515
# Version synonym

frontend/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
2-
"name": "booking-sys-frontend",
3-
"version": "3.1.2",
4-
"private": true,
2+
"name": "@conorheffron/booking-sys-frontend",
3+
"version": "3.1.3",
4+
"private": false,
5+
"license": "GPL-3.0-or-later",
56
"description": "React + TypeScript frontend for Booking System",
67
"scripts": {
78
"dev": "vite",

0 commit comments

Comments
 (0)