chore(deps): bump the minor-and-patch-dependencies group across 1 dir… #469
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: 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 }} |