Skip to content

Commit 9c1521e

Browse files
authored
Merge pull request #3 from joshraphael/release_pipeline
add release pipeline
2 parents 8a2b588 + fe98ecc commit 9c1521e

File tree

2 files changed

+45
-2
lines changed

2 files changed

+45
-2
lines changed

.github/workflows/release.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
8+
jobs:
9+
npm:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
id-token: write
14+
steps:
15+
- uses: actions/checkout@v5
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: '20.x'
19+
registry-url: 'https://registry.npmjs.org'
20+
- run: npm ci
21+
- run: npm publish --provenance --access public
22+
env:
23+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
24+
25+
github:
26+
runs-on: ubuntu-latest
27+
permissions:
28+
contents: read
29+
packages: write
30+
steps:
31+
- uses: actions/checkout@v5
32+
- uses: actions/setup-node@v4
33+
with:
34+
node-version: '20.x'
35+
registry-url: 'https://npm.pkg.github.com'
36+
- run: npm ci
37+
- run: npm publish
38+
env:
39+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "highlightjs-rascript",
3-
"version": "0.0.0",
3+
"version": "0.0.1",
44
"description": "highlight.js syntax definition for RATools DSL, RAScript",
55
"main": "src/languages/rascript.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1"
88
},
99
"repository": {
1010
"type": "git",
11-
"url": "git+https://github.com/joshraphael/highlightjs-rascript.git"
11+
"url": "https://github.com/joshraphael/highlightjs-rascript.git"
1212
},
1313
"keywords": [
1414
"rascript",
@@ -17,6 +17,10 @@
1717
"highlightjs",
1818
"syntax"
1919
],
20+
"files": [
21+
"dist",
22+
"src"
23+
],
2024
"author": "Joshua Raphael",
2125
"license": "MIT",
2226
"bugs": {

0 commit comments

Comments
 (0)