Skip to content

Commit

Permalink
use older config
Browse files Browse the repository at this point in the history
  • Loading branch information
borosr committed Jul 25, 2023
1 parent f164b1e commit d4f4c3f
Showing 1 changed file with 29 additions and 24 deletions.
53 changes: 29 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,38 @@
name: Release

on:
push:
branches:
- 'main'
push:
branches:
- 'main'

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Setup Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Setup Node.js 18.x
uses: actions/setup-node@v2
with:
node-version: 18.x

- name: Install dependencies
run: npm install --frozen-lockfile --prefer-offline --ignore-scripts
- name: Install dependencies
run: npm install --frozen-lockfile --prefer-offline --ignore-scripts

- name: Build
run: npm run build
- name: Build
run: |
npm run build
- name: Publish package to registry
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish package to registry
run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN
EOF
npm publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit d4f4c3f

Please sign in to comment.