Add required headers to login #20
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 package publish' | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: '*' | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: show importante variables | |
run: | | |
echo ${{ github.ref }} | |
publish: | |
runs-on: ubuntu-latest | |
if: github.ref == 'refs/heads/master' | |
needs: [test] | |
steps: | |
- name: setup-checkout | |
uses: actions/checkout@v2 | |
- name: setup-node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: build-scripts | |
run: | | |
npm install | |
npm run build | |
- name: publish things | |
run: npm run semantic-release |