luispatuleia-helloworld 1.0.2 → 1.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.
@@ -0,0 +1,25 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ release:
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+
15
+ - uses: actions/setup-node@v4
16
+ with:
17
+ node-version: 20
18
+ registry-url: https://registry.npmjs.org/
19
+
20
+ - run: npm ci
21
+
22
+ - run: npx semantic-release
23
+ env:
24
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
package/hello-world.js CHANGED
@@ -1 +1,3 @@
1
- console.log("Hello World!");
1
+ #!/usr/bin/env node
2
+
3
+ console.log("Hello World!...");
package/package.json CHANGED
@@ -1,11 +1,15 @@
1
1
  {
2
2
  "name": "luispatuleia-helloworld",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "A simple Hello World example.",
5
5
  "main": "./hello-world.js",
6
6
  "bin": {
7
7
  "luispatuleia-helloworld": "./hello-world.js"
8
8
  },
9
9
  "author": "luispatuleia",
10
- "license": "ISC"
10
+ "license": "ISC",
11
+ "devDependencies": {
12
+ "semantic-release": "^24.2.9"
13
+ },
14
+ "private": false
11
15
  }
@@ -0,0 +1,11 @@
1
+ module.exports = {
2
+ branches: ["main"],
3
+ plugins: [
4
+ "@semantic-release/commit-analyzer",
5
+ "@semantic-release/release-notes-generator",
6
+ "@semantic-release/changelog",
7
+ "@semantic-release/npm",
8
+ "@semantic-release/git",
9
+ "@semantic-release/github"
10
+ ]
11
+ };