Skip to content

Commit 96ee268

Browse files
Merge pull request #28 from CodeAnt-AI/multiples-changes
restoring cicd
2 parents 8ca1b9b + 9f42d53 commit 96ee268

1 file changed

Lines changed: 3 additions & 27 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
name: Build CLI Release
1+
name: Publish Package
22

33
on:
44
push:
55
branches:
66
- main
7-
workflow_dispatch:
87

98
jobs:
10-
build-cli:
9+
publish:
1110
runs-on: ubuntu-latest
1211
permissions:
13-
contents: write
12+
contents: read
1413
steps:
1514
- uses: actions/checkout@v4
1615

@@ -19,31 +18,8 @@ jobs:
1918
node-version: '20'
2019
registry-url: 'https://registry.npmjs.org'
2120

22-
- id: version
23-
run: echo "version=$(jq -r .version package.json)" >> "$GITHUB_OUTPUT"
24-
2521
- run: npm ci
2622

2723
- run: npm publish --access public
2824
env:
2925
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
30-
31-
- run: npm pack
32-
33-
- uses: actions/upload-artifact@v4
34-
with:
35-
name: codeant-cli-v${{ steps.version.outputs.version }}
36-
path: codeant-cli-${{ steps.version.outputs.version }}.tgz
37-
if-no-files-found: error
38-
39-
- uses: softprops/action-gh-release@v2
40-
with:
41-
tag_name: cli-v${{ steps.version.outputs.version }}
42-
name: CodeAnt CLI v${{ steps.version.outputs.version }}
43-
files: codeant-cli-${{ steps.version.outputs.version }}.tgz
44-
fail_on_unmatched_files: true
45-
body: |
46-
CodeAnt CLI npm tarball v${{ steps.version.outputs.version }}
47-
48-
Commit: ${{ github.sha }}
49-
Message: ${{ github.event.head_commit.message }}

0 commit comments

Comments
 (0)