Update cpp-macos.yml #477
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: Node.js Package | |
on: [push] | |
jobs: | |
publish-npm: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
git submodule update --init | |
git fetch --prune --unshallow --tags | |
- uses: actions/setup-node@v1 | |
with: | |
registry-url: 'https://registry.npmjs.org' | |
always-auth: true | |
- run: npm install | |
- run: | | |
npm config set git-tag-version=false | |
npm config ls -l | |
cat $(npm config get userconfig) | |
npm version $(git describe --tags --always) | |
npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |