Skip to content

Commit

Permalink
chore: set @dcl/js-runtime as first package to be published in the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
leanmendoza committed Mar 10, 2023
1 parent ffefdb0 commit d41e42b
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,53 +122,54 @@ jobs:
name: built-artifacts
path: 'packages/**/*.tgz'
retention-days: 5
- name: publish @dcl/dcl-rollup package

- name: publish @dcl/js-runtime package
id: publish_dcl_js_runtime
uses: menduz/oddish-action@master
id: publish_dcl_rollup
with:
registry-url: 'https://registry.npmjs.org'
access: public
cwd: ./packages/@dcl/dcl-rollup
cwd: ./packages/@dcl/js-runtime
## use action runId instead of current date to generate snapshot numbers
deterministic-snapshot: true

## publish every package to s3
s3-bucket: ${{ secrets.SDK_TEAM_S3_BUCKET }}
s3-bucket-key-prefix: '@dcl/js-sdk-toolchain/branch/${{ github.head_ref || github.ref }}/@dcl/dcl-rollup'
s3-bucket-key-prefix: '@dcl/js-sdk-toolchain/branch/${{ github.head_ref || github.ref }}/@dcl/js-runtime'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.SDK_TEAM_AWS_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SDK_TEAM_AWS_SECRET }}
- name: publish @dcl/ecs package
- name: publish @dcl/dcl-rollup package
uses: menduz/oddish-action@master
id: publish_ecs
id: publish_dcl_rollup
with:
registry-url: 'https://registry.npmjs.org'
access: public
cwd: ./packages/@dcl/ecs
cwd: ./packages/@dcl/dcl-rollup
## use action runId instead of current date to generate snapshot numbers
deterministic-snapshot: true

## publish every package to s3
s3-bucket: ${{ secrets.SDK_TEAM_S3_BUCKET }}
s3-bucket-key-prefix: '@dcl/js-sdk-toolchain/branch/${{ github.head_ref || github.ref }}/@dcl/ecs'
s3-bucket-key-prefix: '@dcl/js-sdk-toolchain/branch/${{ github.head_ref || github.ref }}/@dcl/dcl-rollup'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.SDK_TEAM_AWS_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SDK_TEAM_AWS_SECRET }}
- name: publish @dcl/js-runtime package
id: publish_dcl_js_runtime
- name: publish @dcl/ecs package
uses: menduz/oddish-action@master
id: publish_ecs
with:
registry-url: 'https://registry.npmjs.org'
access: public
cwd: ./packages/@dcl/js-runtime
cwd: ./packages/@dcl/ecs
## use action runId instead of current date to generate snapshot numbers
deterministic-snapshot: true

## publish every package to s3
s3-bucket: ${{ secrets.SDK_TEAM_S3_BUCKET }}
s3-bucket-key-prefix: '@dcl/js-sdk-toolchain/branch/${{ github.head_ref || github.ref }}/@dcl/js-runtime'
s3-bucket-key-prefix: '@dcl/js-sdk-toolchain/branch/${{ github.head_ref || github.ref }}/@dcl/ecs'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.SDK_TEAM_AWS_ID }}
Expand Down

0 comments on commit d41e42b

Please sign in to comment.