Skip to content

chore(deps): bump braces from 3.0.2 to 3.0.3 #352

chore(deps): bump braces from 3.0.2 to 3.0.3

chore(deps): bump braces from 3.0.2 to 3.0.3 #352

Workflow file for this run

name: Publish
on:
push:
branches: [main]
tags: ["v*"]
pull_request:
branches: [main]
jobs:
publish-npm-package-okp4:
runs-on: ubuntu-22.04
concurrency:
group: publish-npm-package-okp4-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up context
id: project_context
uses: FranzDiebold/[email protected]
- name: Setup node environment (for publishing)
uses: actions/setup-node@v3
with:
node-version: 18.18
registry-url: "https://npm.pkg.github.com"
scope: "@okp4"
- name: Publish package
run: |
DATE=$(date +%Y%m%d%H%M%S)
yarn
publish=(yarn publish --no-git-tag-version --non-interactive)
if [[ $GITHUB_REF == refs/tags/v* ]]; then
publish+=(--tag latest)
elif [[ $GITHUB_EVENT_NAME == pull_request ]]; then
publish+=(--prerelease --preid ${{ env.CI_ACTION_REF_NAME_SLUG }}.$DATE --tag ${{ env.CI_ACTION_REF_NAME_SLUG }})
else
publish+=(--prerelease --preid next.$DATE --tag next)
fi
echo "πŸš€ Publishing npm package with following command line: ${publish[@]}"
"${publish[@]}"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}
publish-npm-package-public:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-22.04
concurrency:
group: publish-npm-package-public-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up context
id: project_context
uses: FranzDiebold/[email protected]
- name: Setup node environment (for publishing)
uses: actions/setup-node@v3
with:
node-version: 18.18
registry-url: "https://registry.npmjs.org"
scope: "@okp4"
- name: Publish package
run: |
yarn
publish=(yarn publish --access=public --no-git-tag-version --non-interactive)
publish+=(--tag latest)
echo "πŸš€ Publishing npm package with following command line: ${publish[@]}"
"${publish[@]}"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLIC_REGISTRY_TOKEN }}