node-osc 8.0.3 → 8.0.4

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.
@@ -19,26 +19,16 @@ on:
19
19
  - minor
20
20
  - major
21
21
 
22
- # A workflow run is made up of one or more jobs that can run sequentially or in parallel
23
22
  jobs:
24
- # This workflow contains a single job called "bump-version"
25
23
  bump-version:
26
- # The type of runner that the job will run on
27
24
  runs-on: ubuntu-latest
28
25
 
29
- # Steps represent a sequence of tasks that will be executed as part of the job
30
26
  steps:
31
- # Check out the content (source branch). Use a deploy key so that
32
- # when we push changes, it will trigger the release workflow
33
- # run that runs on: tag. (Using the GitHub token would
34
- # not run the workflow to prevent infinite recursion.)
35
27
  - name: Check out source
36
- uses: actions/checkout@v2
37
- with:
38
- ssh-key: ${{ secrets.DEPLOY_KEY }}
28
+ uses: actions/checkout@v3
39
29
 
40
30
  - name: Setup Node.js
41
- uses: actions/setup-node@v2
31
+ uses: actions/setup-node@v3
42
32
  with:
43
33
  node-version: '16'
44
34
  cache: 'npm'
@@ -56,3 +46,9 @@ jobs:
56
46
 
57
47
  - name: Push latest version
58
48
  run: git push origin main --follow-tags
49
+
50
+ create-release:
51
+ needs: bump-version
52
+ uses: ./.github/workflows/create-release.yml
53
+ secrets:
54
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -36,11 +36,11 @@ jobs:
36
36
 
37
37
  steps:
38
38
  - name: Checkout repository
39
- uses: actions/checkout@v2
39
+ uses: actions/checkout@v3
40
40
 
41
41
  # Initializes the CodeQL tools for scanning.
42
42
  - name: Initialize CodeQL
43
- uses: github/codeql-action/init@v1
43
+ uses: github/codeql-action/init@v2
44
44
  with:
45
45
  languages: ${{ matrix.language }}
46
46
  # If you wish to specify custom queries, you can do so here or in a config file.
@@ -48,4 +48,4 @@ jobs:
48
48
  # Prefix the list here with "+" to use these queries and those in the config file.
49
49
  # queries: ./path/to/local/query, your-org/your-repo/queries@main
50
50
  - name: Perform CodeQL Analysis
51
- uses: github/codeql-action/analyze@v1
51
+ uses: github/codeql-action/analyze@v2
@@ -2,16 +2,29 @@ on:
2
2
  push:
3
3
  tags:
4
4
  - 'v*'
5
+ workflow_call:
6
+ secrets:
7
+ NPM_TOKEN:
8
+ required: true
5
9
 
6
10
  name: Create Release
7
11
 
8
12
  jobs:
9
13
  publish:
14
+ permissions:
15
+ contents: read
10
16
  name: Publish to npm
11
17
  runs-on: ubuntu-latest
12
18
  steps:
13
- - uses: actions/checkout@v2
14
- - uses: actions/setup-node@v2
19
+ - name : checkout main if triggered
20
+ if: ${{ github.event_name == 'workflow_dispatch' }}
21
+ uses: actions/checkout@v3
22
+ with:
23
+ ref: main
24
+ - name: checkout tag if not triggered
25
+ if: ${{ github.event_name != 'workflow_dispatch' }}
26
+ uses: actions/checkout@v3
27
+ - uses: actions/setup-node@v3
15
28
  with:
16
29
  node-version: '16'
17
30
  cache: 'npm'
@@ -24,12 +37,16 @@ jobs:
24
37
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
25
38
 
26
39
  create-github-release:
40
+ permissions:
41
+ contents: read
27
42
  name: Create GitHub Release
28
43
  runs-on: ubuntu-latest
29
44
  needs: publish
30
45
  steps:
31
46
  - name: Checkout code
32
47
  uses: actions/checkout@v3
48
+ with:
49
+ ref: main
33
50
  - name: Create Release
34
51
  run: gh release create ${{ github.ref }} --generate-notes
35
52
  env:
@@ -17,10 +17,10 @@ jobs:
17
17
  runs-on: ${{ matrix.os }}
18
18
 
19
19
  steps:
20
- - uses: actions/checkout@v2
20
+ - uses: actions/checkout@v3
21
21
 
22
22
  - name: Use Node.js ${{ matrix.node-version }}
23
- uses: actions/setup-node@v2
23
+ uses: actions/setup-node@v3
24
24
  with:
25
25
  node-version: ${{ matrix.node-version }}
26
26
  cache: 'npm'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "node-osc",
3
3
  "description": "pyOSC inspired library for sending and receiving OSC messages",
4
- "version": "8.0.3",
4
+ "version": "8.0.4",
5
5
  "exports": {
6
6
  "require": "./dist/lib/index.js",
7
7
  "default": "./lib/index.mjs"