Skip to content

Commit

Permalink
chore(release): use volta setup for release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BobrImperator committed Aug 21, 2023
1 parent 8598f70 commit 17d0bf2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
registry-url: 'https://registry.npmjs.org'
cache: yarn
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- uses: ./.github/actions/pnpm-setup
- name: Install dependencies
run: pnpm install

- run: yarn install --frozen-lockfile

- run: npm publish
- name: Set publishing config
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
working-directory: packages/ember-cookies
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

- run: pnpm run --filter ember-cookies release
3 changes: 2 additions & 1 deletion packages/ember-cookies/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"lint:js:fix": "eslint . --fix",
"prepublishOnly": "concurrently \"pnpm copyDoc\" \"pnpm build\"",
"start": "rollup --config --watch",
"test": "echo 'A v2 addon does not have tests, run tests in test-app'"
"test": "echo 'A v2 addon does not have tests, run tests in test-app'",
"release": "npm publish"
},
"dependencies": {
"@embroider/addon-shim": "^1.7.1"
Expand Down

0 comments on commit 17d0bf2

Please sign in to comment.