Skip to content

Update repository URL in package.json #38

Update repository URL in package.json

Update repository URL in package.json #38

Workflow file for this run

name: Daily Build and Publish
on:
schedule:
- cron: '0 0 * * *' # Runs at 00:00 UTC every day
jobs:
build-and-publish:

Check failure on line 8 in .github/workflows/daily_build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/daily_build.yml

Invalid workflow file

You have an error in your yaml syntax on line 8
runs-on: ubuntu-latest
environment: prod # Specify the environment here
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Fetches all history for all tags and branches
token: ${{ secrets.MY_PERSONAL_TOKEN }} # Use the renamed PAT here
ssh-strict: true
persist-credentials: true
clean: true
lfs: false
submodules: false
set-safe-directory: true
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18' # Specify your Node.js version
registry-url: 'https://registry.npmjs.org/'
- name: Install pnpm
run: npm install -g pnpm
- name: Install Dependencies
run: pnpm install
- name: Update Contracts
run: pnpm update-contracts
- name: Format
run: pnpm format
- name: Check for changes
id: git-check
run: |
git diff --quiet && git diff --staged --quiet || echo "::set-output name=changes_detected::true"
- name: Increment package version
if: steps.git-check.outputs.changes_detected == 'true'
run: |
npm version patch --no-git-tag-version
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Commit and Push
if: steps.git-check.outputs.changes_detected == 'true'
run: |
git config --global user.name 'alexx855'
git config --global user.email '[email protected]'
git add .
git commit -m "Automated update" -a || echo "No changes to commit"
git push
- name: Publish to npm
if: steps.git-check.outputs.changes_detected == 'true'
run: pnpm upload
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}