Skip to content

Commit

Permalink
ci: adjusting github pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Dokuqui committed Feb 17, 2024
1 parent 24fb5b9 commit 5b8a03f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 17 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/nodejs.yml → .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,23 +65,24 @@ jobs:
- name: Run unit tests
run: npm run test-coverage

# publish:
# runs-on: ubuntu-latest

# steps:
# - name: Checkout code
# uses: actions/checkout@v2
publish:
runs-on: ubuntu-latest
needs: test

# - name: Setup Node.js
# uses: actions/setup-node@v3
# with:
# node-version: '18'
steps:
- name: Checkout repository
uses: actions/checkout@v2

# - name: Install dependencies
# run: npm install
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

# - name: Publish to npm
# run: npm publish --access public
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Install Semantic Release
run: npm install -g semantic-release@17 @semantic-release/git@10 @semantic-release/changelog@7 @semantic-release/npm@7

- name: Run Semantic Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
14 changes: 13 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,17 @@
"directories": {
"doc": "docs",
"test": "test"
}
},
"keywords": [
"semantic-release",
"plugin",
"force-version"
],
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"contributors": [
"Semenov Illia doku_is@icloud.com"
]
}

0 comments on commit 5b8a03f

Please sign in to comment.