build(deps-dev): bump rimraf from 5.0.1 to 5.0.5 #408
Workflow file for this run
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: Continuous Deployment | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
continuous-integration: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Node.js version | |
uses: actions/setup-node@v3.1.0 | |
with: | |
node-version: "18" | |
- name: Install | |
run: | | |
npm ci | |
npm ls | |
- name: "Continuous Integration: lint" | |
run: | | |
npm run lint --if-present | |
- name: "Continuous Integration: build" | |
run: | | |
npm run build --if-present | |
- name: "Continuous Integration: test" | |
run: | | |
npm run test --if-present | |
publish-npm: | |
runs-on: ubuntu-latest | |
needs: continuous-integration | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GH_REPO_TOKEN }} | |
- name: Set up Node.js version | |
uses: actions/setup-node@v3.1.0 | |
with: | |
node-version: "18" | |
- name: "Continuous Deployment: install" | |
run: | | |
npm ci | |
npm ls | |
- name: "Continuous Deployment: build" | |
run: | | |
npm run build --if-present | |
- name: "Continuous Deployment: publish to GitHub repository" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_REPO_TOKEN }} | |
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }} | |
GIT_AUTHOR_NAME: "NL Design System" | |
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }} | |
GIT_COMMITTER_NAME: "NL Design System" | |
run: | | |
git push --set-upstream origin HEAD | |
npm run release -- --yes | |
- name: "Continuous Deployment: publish to npm" | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
npm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}" | |
npm run publish -- --no-verify-access --yes | |
npm config delete "//registry.npmjs.org/:_authToken" |