Skip to content

fix: explicitly set github token as well #7

fix: explicitly set github token as well

fix: explicitly set github token as well #7

Workflow file for this run

name: build-and-release
"on":
push:
branches:
- master
pull_request:
types:
- opened
- synchronize
permissions:
contents: write
issues: write
packages: write
pull-requests: write
jobs:
made-with-tpgha:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Setting up NodeJs
id: setup-node-js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: npm ci
run: npm ci
shell: bash
- name: npm run lint
run: npm run lint
shell: bash
- name: npm run test
run: npm run test
shell: bash
- name: npm run build
run: npm run build
shell: bash
- name: npm run release
run: npx semantic-release
shell: bash
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}