readme.md #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CI/CD NPM" | |
on: | |
push: | |
branches: [main] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: node | |
uses: actions/setup-node@v2 | |
with: | |
clean: true | |
node-version: 20 | |
registry-url: https://registry.npmjs.org | |
- name : "configuring git" | |
run: | | |
git config --global user.email "${{github.actor}}@users.noreply.github.com" | |
git config --global user.name "${{github.actor}}" | |
- name : "install_dependencies" | |
run: npm install | |
working-directory: ./ | |
- name : "check build" | |
run: npm pack --dry-run | |
working-directory: ./ | |
- name : "versioning" | |
run: npm version patch | |
working-directory: ./ | |
- name : "build" | |
run: npm run build | |
working-directory: ./ | |
- name : "publish" | |
run: npm publish --access public | |
working-directory: ./ | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.PVSCREATIONS}} |