Skip to content

chore(deps): bump the minor-and-patch-dependencies group with 5 updat… #475

chore(deps): bump the minor-and-patch-dependencies group with 5 updat…

chore(deps): bump the minor-and-patch-dependencies group with 5 updat… #475

Workflow file for this run

name: Build-Deploy-Npm
on:
push:
branches:
- 'main'
paths-ignore:
- package.json
jobs:
build-and-push-to-npm:
permissions:
contents: write
issues: write
pull-requests: write
packages: write
name: Bygg og push
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'
registry-url: "https://npm.pkg.github.com"
- name: Prepare repository
run: git checkout "${GITHUB_REF:11}"
- name: Installer dependencies
env:
NODE_AUTH_TOKEN: ${{ secrets.READER_TOKEN }}
run: |
yarn
yarn build
- name: Login
run: |
git config user.email "[email protected]"
git config user.name "Team familie"
git remote set-url origin https://github-actions[bot]:[email protected]/$GITHUB_REPOSITORY.git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create a .npmrc file for the github package repository
uses: FerLuisxd/create-npmrc@3
with:
org_name: navikt
env:
AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Push
run: |
yarn deploy-storybook
npm run publish:ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}