Release #5
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: tag and release | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
version_and_release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# fetch full history so things like auto-changelog work properly | |
fetch-depth: 0 | |
- name: Install zerotier-one | |
run: curl -s https://install.zerotier.com/ | sudo bash | |
- name: Set auth token | |
run: echo "AUTH_TOKEN=$(sudo cat /var/lib/zerotier-one/authtoken.secret)" >> $GITHUB_ENV | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- run: npm ci | |
- run: npm run build | |
- run: npm test | |
- run: npm run release | |
env: | |
GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} |