chore(): bump version of npm to set the keywords and home page on npm #30
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: Release toolkit | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20.9.0 | |
registry-url: https://registry.npmjs.org/ | |
- name: 'Install Dependencies' | |
run: yarn install | |
- name: 'Tests' | |
run: yarn test | |
- name: 'Set .npm file file' | |
run: echo //registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}} > .npmrc | |
- name: 'Create Release And Publish' | |
run: | | |
GH_TOKEN=${{secrets.GH_TOKEN}} node ./src/bin.js release | |
- name: 'Clean up' | |
run: | | |
rm .npmrc |