Skip to content

Commit

Permalink
ci(dotfiles): 🐛 testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienrousseau committed Feb 19, 2024
1 parent 226da3e commit b7b7b3c
Showing 1 changed file with 52 additions and 29 deletions.
81 changes: 52 additions & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,44 +31,67 @@ jobs:
- name: Build
run: pnpm run build

publish:
needs: build
runs-on: ubuntu-latest
# publish:
# needs: build
# runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
# steps:
# - uses: actions/checkout@v2

- uses: pnpm/action-setup@v2.2.4
with:
version: 7
# - uses: pnpm/action-setup@v2.2.4
# with:
# version: 7

- name: Install dependencies
run: pnpm install --no-frozen-lockfile
# - name: Install dependencies
# run: pnpm install --no-frozen-lockfile

- name: Build
run: pnpm run build
# - name: Build
# run: pnpm run build

- name: Pack
run: pnpm pack
# - name: Pack
# run: pnpm pack

- name: Result
run: ls -al ./dist
# - name: Result
# run: ls -al ./dist

- name: Publish to NPM
run: pnpm publish --access public --tag latest --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# - name: Publish to NPM
# run: pnpm publish --access public --tag latest --no-git-checks
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Set package registry
run: pnpm config set registry https://npm.pkg.github.com
# - name: Set package registry
# run: pnpm config set registry https://npm.pkg.github.com

- name: Github package registry authentication
run: pnpm set //npm.pkg.github.com/:_authToken ${{ secrets.GITHUB_TOKEN }}
# - name: Github package registry authentication
# run: pnpm set //npm.pkg.github.com/:_authToken ${{ secrets.GITHUB_TOKEN }}

- name: Npm registry authentication
run: pnpm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
# - name: Npm registry authentication
# run: pnpm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}

- name: Publish the package to Github package registry
run: pnpm publish --access public --tag latest --no-git-checks
# - name: Publish the package to Github package registry
# run: pnpm publish --access public --tag latest --no-git-checks
# env:
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
registry-url: "https://registry.npmjs.org"
scope: sebastienrousseau
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
- name: Set package registry
run: npm config set registry https://npm.pkg.github.com
- name: Github package registry authentication
run: npm set //npm.pkg.github.com/:_authToken ${{ secrets.GITHUB_TOKEN }}
- name: Npm registry authentication
run: npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
- name: Publish the package to Github and Npm package registries
run: npm publish --access=public

0 comments on commit b7b7b3c

Please sign in to comment.