Skip to content

Commit

Permalink
Change download path
Browse files Browse the repository at this point in the history
  • Loading branch information
trallard committed Sep 19, 2024
1 parent 902fc9c commit fc026d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/javascript-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
pull_request:

jobs:
build:
js-tests:
runs-on: ubuntu-latest

strategy:
Expand All @@ -23,7 +23,7 @@ jobs:
steps:
- name: "Checkout repository 🛎"
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
- name: "Setup Node.js ${{ matrix.node-version }}"
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,27 +79,25 @@ jobs:
uses: actions/download-artifact@v4
with:
name: conda-store-ui-package
path: packages

- name: "Check downloaded artefacts 🔍"
run: |
ls -R packages
pwd
ls -la
- name: "Attest Build Provenance ✨"
uses: actions/attest-build-provenance@v1
if: github.repository_owner == 'conda-incubator' && github.event_name == 'release' && startsWith(github.ref, 'refs/tags/')
with:
subject-path: packages/${{ env.PACKAGE_FILE }}
subject-path: ${{ env.PACKAGE_FILE }}

- name: "Set NPM scope" #(setup-node workaround https://github.com/actions/setup-node/issues/763)
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm config delete @conda-store-ui:registry --location project
# npm config set @conda-store-ui:registry 'https://registry.npmjs.org' --location project
# npm config set //registry.npmjs.org/:_authToken '${NODE_AUTH_TOKEN}' --location project
npm config set @conda-store-ui:registry 'https://registry.npmjs.org' --location project
npm config set //registry.npmjs.org/:_authToken '${NODE_AUTH_TOKEN}' --location project
- name: "Check NPM scope"
run: npm show
Expand All @@ -108,14 +106,14 @@ jobs:
- name: "Check publish (dry run) 📤"
run: |
echo "Publishing dry run..."
npm publish --verbose --access public packages/${{ env.PACKAGE_FILE }} --dry-run
npm publish --verbose --access public ${{ env.PACKAGE_FILE }} --dry-run
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: "Publish to npm 📤"
if: github.repository_owner == 'conda-incubator' && github.event_name == 'release' && startsWith(github.ref, 'refs/tags/')
run: |
echo "Publishing with tag ${{ env.GITHUB_REF_NAME }}"
npm publish --verbose --access public packages/${{ env.PACKAGE_FILE }} --dry-run
npm publish --verbose --access public ${{ env.PACKAGE_FILE }} --dry-run
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit fc026d7

Please sign in to comment.