chore(deps): bump loader-utils from 1.4.0 to 1.4.2 (#1141) #290
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: Build-Deploy-Npm | |
on: | |
push: | |
branches: | |
- 'master' | |
paths-ignore: | |
- package.json | |
jobs: | |
build-and-push-to-npm: | |
name: Bygg og push | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
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 }} |