highlightjs-opl 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,36 @@
1
+ name: build
2
+
3
+ on:
4
+ pull_request:
5
+ branches: [ main ]
6
+ push:
7
+ branches: [ main ]
8
+ schedule:
9
+ - cron: '0 9 * * *'
10
+ workflow_dispatch:
11
+
12
+ jobs:
13
+ build:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - uses: actions/setup-node@v4
18
+ with:
19
+ node-version: 20
20
+ - run: npm ci
21
+ - run: npm test
22
+
23
+ publish-npm:
24
+ needs: build
25
+ runs-on: ubuntu-latest
26
+ if: ${{ github.ref == 'refs/heads/main' }}
27
+ steps:
28
+ - uses: actions/checkout@v4
29
+ - uses: actions/setup-node@v4
30
+ with:
31
+ node-version: 20
32
+ registry-url: https://registry.npmjs.org/
33
+ - run: npm ci
34
+ - run: npm publish
35
+ env:
36
+ NODE_AUTH_TOKEN: ${{secrets.npm_token}}
package/README.md CHANGED
@@ -44,3 +44,8 @@ npm version 1.0.1
44
44
  > [!NOTE]
45
45
  >
46
46
  > This will not automatically commit the updated `package.json` or tag the release as this functionality has been disabled in `.npmrc` to allow for external versioning.
47
+
48
+ ## License
49
+
50
+ OPL for Highlight.js is licensed under the MIT License (see [LICENSE](https://github.com/inseven/psion-screen-saver/blob/main/LICENSE)).
51
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "highlightjs-opl",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Psion OPL syntax highlighting plugin for highlight.js",
5
5
  "main": "src/languages/opl.js",
6
6
  "directories": {