@ceylar/ada 0.0.9 → 0.0.11

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.
@@ -1,29 +1,32 @@
1
- name: Publish Package to npm
2
-
3
- on:
4
- push:
5
- branches: [main]
6
-
7
- jobs:
8
- build:
9
- runs-on: ubuntu-latest
10
-
11
- steps:
12
- - uses: actions/checkout@v3
13
-
14
- - name: Setup Node.js
15
- uses: actions/setup-node@v3
16
- with:
17
- node-version: 22
18
- registry-url: 'https://registry.npmjs.org'
19
-
20
- - name: Install dependencies
21
- run: yarn install --frozen-lockfile
22
-
23
- - name: Build package
24
- run: yarn build
25
-
26
- - name: Publish to npm
27
- run: yarn publish
28
- env:
29
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1
+ name: Publish Package to npm
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+
7
+ jobs:
8
+ publish:
9
+ runs-on: ubuntu-latest
10
+ permissions:
11
+ contents: write
12
+ issues: write
13
+ pull-requests: write
14
+ id-token: write
15
+ steps:
16
+ - name: Checkout repository
17
+ uses: actions/checkout@v6
18
+
19
+ - name: Setup Node.js
20
+ uses: actions/setup-node@v6
21
+ with:
22
+ node-version: 22
23
+ registry-url: 'https://registry.npmjs.org'
24
+
25
+ - name: Install dependencies
26
+ run: yarn install --frozen-lockfile
27
+
28
+ - name: Build package
29
+ run: yarn build
30
+
31
+ - name: Publish to npm
32
+ run: yarn publish
@@ -1,38 +1,38 @@
1
- name: Version Check
2
-
3
- on:
4
- pull_request:
5
- branches: [main]
6
-
7
- jobs:
8
- check-version:
9
- runs-on: ubuntu-latest
10
- steps:
11
- - uses: actions/checkout@v4
12
- with:
13
- fetch-depth: 0
14
-
15
- - name: Get base (target) branch version
16
- id: base-version
17
- run: |
18
- git fetch origin ${{ github.base_ref }}
19
- BASE_VERSION=$(git show origin/${{ github.base_ref }}:package.json | jq -r .version)
20
- echo "base_version=$BASE_VERSION" >> $GITHUB_OUTPUT
21
-
22
- - name: Get current (PR) branch version
23
- id: pr-version
24
- run: |
25
- PR_VERSION=$(jq -r .version package.json)
26
- echo "pr_version=$PR_VERSION" >> $GITHUB_OUTPUT
27
-
28
- - name: Compare versions
29
- run: |
30
- BASE=${{ steps.base-version.outputs.base_version }}
31
- PR=${{ steps.pr-version.outputs.pr_version }}
32
-
33
- if [ "$BASE" = "$PR" ]; then
34
- echo "::error::Version in package.json must be incremented! Current: $PR, expected higher than $BASE"
35
- exit 1
36
- fi
37
-
38
- echo "Version increased from $BASE to $PR - validation passed"
1
+ name: Version Check
2
+
3
+ on:
4
+ pull_request:
5
+ branches: [main]
6
+
7
+ jobs:
8
+ check-version:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ with:
13
+ fetch-depth: 0
14
+
15
+ - name: Get base (target) branch version
16
+ id: base-version
17
+ run: |
18
+ git fetch origin ${{ github.base_ref }}
19
+ BASE_VERSION=$(git show origin/${{ github.base_ref }}:package.json | jq -r .version)
20
+ echo "base_version=$BASE_VERSION" >> $GITHUB_OUTPUT
21
+
22
+ - name: Get current (PR) branch version
23
+ id: pr-version
24
+ run: |
25
+ PR_VERSION=$(jq -r .version package.json)
26
+ echo "pr_version=$PR_VERSION" >> $GITHUB_OUTPUT
27
+
28
+ - name: Compare versions
29
+ run: |
30
+ BASE=${{ steps.base-version.outputs.base_version }}
31
+ PR=${{ steps.pr-version.outputs.pr_version }}
32
+
33
+ if [ "$BASE" = "$PR" ]; then
34
+ echo "::error::Version in package.json must be incremented! Current: $PR, expected higher than $BASE"
35
+ exit 1
36
+ fi
37
+
38
+ echo "Version increased from $BASE to $PR - validation passed"
package/babel.config.json CHANGED
@@ -1,9 +1,9 @@
1
- {
2
- "presets": [
3
- "@babel/preset-env",
4
- "@babel/preset-typescript"
5
- ],
6
- "targets": {
7
- "node": "current"
8
- }
9
- }
1
+ {
2
+ "presets": [
3
+ "@babel/preset-env",
4
+ "@babel/preset-typescript"
5
+ ],
6
+ "targets": {
7
+ "node": "current"
8
+ }
9
+ }