Skip to content

Merge pull request #27 from voorhoede/feat/native-lazy-loading #31

Merge pull request #27 from voorhoede/feat/native-lazy-loading

Merge pull request #27 from voorhoede/feat/native-lazy-loading #31

Workflow file for this run

name: Publish Package
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions: write-all
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- name: Use dependencies cache
uses: actions/cache@v3
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Install dependencies
run: npm ci --ignore-scripts --no-audit --no-fund
- run: npm run build
- name: Create release pull request or publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: npx changeset publish
createGithubReleases: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}