lumos-language 1.0.7 → 1.0.9

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.
@@ -7,8 +7,18 @@ jobs:
7
7
  deploy:
8
8
  runs-on: ubuntu-latest
9
9
  steps:
10
+ - name: Checkout
11
+ uses: actions/checkout@v3
12
+ - name: Replace Glitch-specific package.json
13
+ run: cp package.json glitch-package.json
10
14
  - name: Deploy To Glitch
11
15
  uses: kanadgupta/glitch-sync@main
12
16
  with:
13
17
  project-id: '${{ secrets.PROJECT_ID }}'
14
18
  auth-token: '${{ secrets.AUTH_TOKEN }}'
19
+ - name: Delete package.json on Glitch via API
20
+ run: |
21
+ curl -X POST "https://api.glitch.com/projects/${{ secrets.PROJECT_ID }}/remix" \
22
+ -H "Authorization: Bearer ${{ secrets.AUTH_TOKEN }}" \
23
+ -H "Content-Type: application/json" \
24
+ -d '{"mutations":[{"action":"removeFile","path":"package.json"}]}'
@@ -0,0 +1,33 @@
1
+ name: Node.js Package
2
+
3
+ on:
4
+ release:
5
+ types: [created]
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ - uses: actions/setup-node@v4
13
+ with:
14
+ node-version: 20
15
+ - run: npm ci
16
+ - run: npm test
17
+
18
+ publish-gpr:
19
+ needs: build
20
+ runs-on: ubuntu-latest
21
+ permissions:
22
+ contents: read
23
+ packages: write
24
+ steps:
25
+ - uses: actions/checkout@v4
26
+ - uses: actions/setup-node@v4
27
+ with:
28
+ node-version: 20
29
+ registry-url: https://npm.pkg.github.com/
30
+ - run: npm ci
31
+ - run: npm publish
32
+ env:
33
+ NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
package/.glitchignore ADDED
@@ -0,0 +1,4 @@
1
+ .git/
2
+ .gitignore
3
+ *.log
4
+ node_modules/
package/README.md CHANGED
@@ -33,6 +33,7 @@ Lumos is influenced by
33
33
  <ul>
34
34
  <li><code>for i = 1 to 5 { let square = i * i }</code></li>
35
35
  <li><code>while (x < 10) { let x = x + 1 }</code></li>
36
+ <li><code>3.times do |i| {i} end</code>
36
37
  </ul>
37
38
  - Conditional branch:
38
39
  <ul>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lumos-language",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Lumos - Interactive CLI",
5
5
  "main": "index.cjs",
6
6
  "bin": {
@@ -21,12 +21,13 @@
21
21
  "license": "MIT",
22
22
  "type": "commonjs",
23
23
  "scripts": {
24
+ "start": "node ./index.cjs && rm -f package.json && refresh",
24
25
  "test": "lumos"
25
26
  },
26
27
  "keywords": [
27
28
  "programming-language"
28
29
  ],
29
30
  "dependencies": {
30
- "lumos-language": "^1.0.7"
31
+ "lumos-language": "^1.0.9"
31
32
  }
32
33
  }