luau-obfuscator 1.0.0

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,57 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ permissions:
9
+ contents: read
10
+ id-token: write
11
+
12
+ jobs:
13
+ publish:
14
+ runs-on: ubuntu-latest
15
+
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+
19
+ - uses: actions/setup-node@v4
20
+ with:
21
+ node-version: '22'
22
+ registry-url: 'https://registry.npmjs.org'
23
+
24
+ - name: Update npm
25
+ run: npm install -g npm@latest
26
+
27
+ - name: Check Version
28
+ id: check
29
+ run: |
30
+ PACKAGE=$(node -p "require('./package.json').name")
31
+ LOCAL=$(node -p "require('./package.json').version")
32
+ PUBLISHED=$(npm view "$PACKAGE" version 2>/dev/null || echo "0.0.0")
33
+
34
+ echo "package=$PACKAGE"
35
+ echo "local=$LOCAL"
36
+ echo "published=$PUBLISHED"
37
+
38
+ if [ "$(npx semver "$LOCAL" -r ">$PUBLISHED")" ]; then
39
+ echo "should_publish=true" >> "$GITHUB_OUTPUT"
40
+ else
41
+ echo "should_publish=false" >> "$GITHUB_OUTPUT"
42
+ fi
43
+
44
+ - name: Install Dependencies
45
+ run: npm ci
46
+
47
+ - name: Build
48
+ run: npm run build
49
+
50
+ - name: TypeCheck
51
+ run: npm run typecheck
52
+
53
+ - name: Test
54
+ run: npm test
55
+
56
+ - name: Publish
57
+ run: npm publish --provenance