Skip to content

[Snyk] Upgrade reflect-metadata from 0.2.1 to 0.2.2 #16

[Snyk] Upgrade reflect-metadata from 0.2.1 to 0.2.2

[Snyk] Upgrade reflect-metadata from 0.2.1 to 0.2.2 #16

Workflow file for this run

name: Bump version and publish to NPM
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
versioning:
name: Bump version
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node 18
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- name: Build package
run: |
npm install -g yarn
yarn install
yarn build
- name: Register Token
run: |
echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > /home/runner/work/_temp/.npmrc
echo "//registry.npmjs.org/:_auth=$NODE_AUTH_TOKEN" >> /home/runner/work/_temp/.npmrc
echo "[email protected]" >> /home/runner/work/_temp/.npmrc
echo "always-auth=true" >> /home/runner/work/_temp/.npmrc
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish
run: npm publish --access public