fix: NaNになるかもしれない値の ??(null合体演算子)による分岐処理を || に修正(src/sn/ReadState.ts) #335
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 package" | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
registry-url: https://npm.pkg.github.com/ | |
node-version: '18' | |
- run: npm ci | |
- run: npm test | |
- run: npm run semantic-release | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
NPM_TOKEN: ${{secrets.NPM_TOKEN}} | |
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- run: npx can-npm-publish --verbose && npm publish || echo "Does not publish" | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
publish-npm: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Fetch the latest tag | |
id: latest_tag | |
run: | | |
export LATEST_TAG="$(curl -fsi "https://github.com/${GITHUB_REPOSITORY}/releases/latest" | awk -F/ '/^(L|l)ocation:/ {print $(NF)}')" | |
echo "::set-output name=latest_tag::${LATEST_TAG}" | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{steps.latest_tag.outputs.latest_tag}} | |
- run: git log | |
- uses: actions/setup-node@v3 | |
with: | |
registry-url: https://registry.npmjs.org/ | |
node-version: '18' | |
scope: '@famibee' | |
- run: npm ci | |
- run: npx can-npm-publish --verbose && npm publish --access=public || echo "Does not publish" | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |